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.
Python 3.x
Beautiful Soup 4
Selenium
Chrome Web Driver
PyQt5
Requests library
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
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 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
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.
This project is licensed under the MIT License
Thank you for your interest in contributing to the project! To contribute, please follow these steps:
- Fork the repository and clone it to your local machine.
- Create a new branch for your contribution.
- Make your desired changes and improvements.
- Test your changes to ensure they work as intended.
- Commit and push your changes to your forked repository.
- 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.
This project was created by Michael Leli.