Skip to content

Latest commit

 

History

History
71 lines (44 loc) · 2.41 KB

README.md

File metadata and controls

71 lines (44 loc) · 2.41 KB

ValhallaScrapeTrans

A scraping and Translate project

This project contains two Python scripts, scrap.py and main.py, that allow users to scrape text from a website and translate it into multiple languages using Google Translate API.

Requirements

Python 3.x
Beautiful Soup 4
Selenium
Chrome Web Driver
PyQt5
Requests library

Installation

Clone this repository to your local machine
Install required packages by running pip install -r requirements.txt
Download and install Chrome Web Driver from here and save it in a directory on your local machine

Usage

scrap.py

scrap.py allows users to scrape text from a website and save it to a file. To use scrap.py, follow these steps:

Open scrap.py in a text editor of your choice
Replace the url variable with the URL of the website you want to scrape
Replace the output_file variable with the name of the file you want to save the scraped text to
Run python scrap.py

main.py

main.py allows users to translate text scraped from a website into multiple languages using Google Translate API. To use main.py, follow these steps: Run python main.py

Notes

Main.py
Ensure that you have an active internet connection to access the Google Translate API for translation.
The HTML file should be in a valid HTML format for proper translation and processing.
The application currently supports translation to Hindi, Spanish, French, and other languages can be added to the dropdown menu as needed.

scrap.py

License

This project is licensed under the MIT License

Contributing

Thank you for your interest in contributing to the project! To contribute, please follow these steps:

  1. Fork the repository and clone it to your local machine.
  2. Create a new branch for your contribution.
  3. Make your desired changes and improvements.
  4. Test your changes to ensure they work as intended.
  5. Commit and push your changes to your forked repository.
  6. Submit a pull request, describing the changes you made and their purpose.

Please note that all contributions will be reviewed before merging them into the main repository. Make sure to adhere to the project's coding conventions and guidelines.

If you have any questions or need further assistance, please feel free to or contact me.

Credits

This project was created by Michael Leli.