Welcome to the Internet Scraper! This powerful tool simplifies data scraping across multiple platforms while ensuring security, flexibility, and scalability. 🌐
- internetScraper.py: The main script for web scraping, data analysis, and visualization.
- installer.sh: A universal shell script for setting up the environment on various Linux distributions.
- installer.bat: A batch script for Windows installation.
- .env: Configuration file for environment variables.
- output/: Directory where all scraped data will be saved.
This project is compatible with most Linux distributions, including Ubuntu, Fedora, CentOS, and Arch Linux.
-
Clone the repository:
git clone https://github.com/MrAmirRezaie/internetScraper cd internet-scraper -
Run the installer script:
bash installer.sh
-
Activate the virtual environment:
source env/bin/activate -
Run the scraper:
internetScraper
- Clone the repository and navigate to its directory.
- Run the batch installer:
installer.bat
- Use Python to run the script directly.
| Option | Description |
|---|---|
--usernames |
Comma-separated list of usernames to scrape data for. |
--keywords |
Comma-separated list of keywords to filter the data. |
--start_date |
The start date for filtering data (YYYY-MM-DD). |
--end_date |
The end date for filtering data (YYYY-MM-DD). |
--max_results |
The maximum number of results to retrieve. |
--save_formats |
Output formats for the data (txt, csv, json, html, xlsx, db). |
--proxy |
Proxy server to use during scraping. |
--ocr_lang |
Language for OCR processing (e.g., eng, fas, ara). |
--translate |
Enable text translation (optional). |
--dest_lang |
Destination language for translation (default: en). |
python3 internetScraper.py --usernames "john_doe" --keywords "example" --start_date "2023-01-01" --end_date "2023-12-31" --max_results 50 --save_formats "csv,json"The Internet Scraper supports the following platforms:
- Telegram: Extract messages, links, and user interactions.
- Twitter: Scrape tweets, mentions, hashtags, and metadata.
- Instagram: Collect captions, image metadata, and post details.
- Facebook: Retrieve posts, shared content, and user comments.
- LinkedIn: Extract professional posts and activities.
- Reddit: Scrape subreddit posts, comments, and votes.
- Google: Gather metadata from search results.
- Data Export: Save scraped data in various formats, including
.txt,.csv,.json,.html,.xlsx, and SQLite database. - Visualization: Use built-in visualizations to analyze data distribution and trends.
- Text Translation: Translate scraped text into over 100 languages.
- Sentiment Analysis: Use NLTK for analyzing the sentiment of text.
- Custom OCR: Extract text from images using a TensorFlow-based OCR model.
We prioritize the security and privacy of your data:
- Environment Variables: Sensitive information, such as API keys, is stored securely in the
.envfile. - Encryption: All data is encrypted using Fernet symmetric encryption to prevent unauthorized access.
- Secure Storage: Ensure your
.envfile and database are kept in secure locations.
-
Setup and Initialization:
- Install the required dependencies and set up the virtual environment.
- Configure the
.envfile with the necessary API keys and paths.
-
Run the Script:
- Use the command-line options to specify usernames, keywords, date ranges, and output formats.
-
Data Scraping:
- The scraper navigates through platforms using Selenium WebDriver.
- Extracted data is processed, filtered, and stored securely.
-
Export and Analysis:
- Data is saved in the specified formats and can be analyzed using visualizations or external tools.
For questions, feedback, or bug reports, contact the maintainer:
- Email: MrAmirRezaie70@gmail.com
- Telegram: @MrAmirRezaie
- GitHub: internetScraper
This project is licensed under the MIT License. Feel free to use, modify, and distribute.
Happy Scraping! 😃