Empower your web scraping needs by leveraging the versatility of this tool. While the provided code demonstrates scraping from a specific website, users can effortlessly adapt it to harvest data from their preferred web sources.
The Data Scraper GUI Application is a tool that allows users to fetch and scrape data from either an API or a web page. It provides a user-friendly interface to input the source, URL, and desired output format (JSON or CSV) for the scraped data. The application is built using the Python tkinter
library for the graphical user interface, and it uses requests
for making HTTP requests, BeautifulSoup
for web scraping, and pandas
for handling data.
The Data Scraper GUI Application simplifies the process of data scraping from web sources by providing an easy-to-use graphical interface. Users can choose between fetching data from an API or scraping data from a web page. The application supports saving the scraped data in either JSON or CSV format.
- Choose between API and web scraping as data sources.
- Input the URL of the API or the web page to scrape.
- Select the desired output format: JSON or CSV.
- Fetch data from the specified source and URL.
- Display a progress bar to indicate the scraping process.
- Handle errors and display status messages.
- Save the scraped data in the selected format.
- Clone this repository to your local machine:
git clone https://github.com/Dev-Hooman/data-scraper.git cd data-scraper
- Run the application by executing the following command:
python run.py
- The graphical user interface (GUI) will open. Here's how to use the application:
- Choose the data source by selecting "API" or "Web".
- Enter the URL of the API or web page you want to scrape.
- Select the output format as either "JSON" or "CSV".
- Click the "Scrap" button to initiate the scraping process.
- The progress bar will show the progress of the scraping.
- Once the scraping is complete, the status label will display the result.
- The scraped data will be saved in the selected format (JSON or CSV) in a location of your choice.
You can customize this application to suit your needs. Some possible improvements include:
- Adding more data sources or web scraping targets.
- Enhancing the user interface with more styling and design.
- Adding options to customize the data scraping process further.
- Handling additional errors and edge cases.
- Implementing multi-threading for smoother user experience.
- Contributions are welcome! If you have any suggestions, bug fixes, or enhancements, feel free to open an issue or submit a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.