Skip to content

This is made as my work as a TA for Business Intelligence Class, all usage are educational only!

Notifications You must be signed in to change notification settings

DaBabyOx/TwitterScrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

⚠️THIS IS STRICTLY FOR EDUCATIONAL USE ONLY!⚠️ ⚠️DO NOT REDISTRIBUTE⚠️ ⚠️DO NOT USE YOUR MAIN ACCOUNT⚠️

Hello, this is the tutorial on how you could use the scraper for your class assignments / researches, follow along the guide, and you should be able to run it too 😁👍

1. Clone this repository

  • Open up your Visual Studio Code image
  • Open a new Folder inside of your Visual Studio Code image
  • Once you have reached the Explorer page of your Visual Studio Code press Shift + ` to open the terminal image
  • Type in git clone https://github.com/DaBabyOx/TwitterScrapper.git inside of your terminal and run it (or just download the zip of the code in the releases section and extract it somewhere if you dont have git) image

2. Fetch your X Tokens

  • Open the Cookie Editor website and download their extension image
  • Install their extension by clicking on their Install Now button and download as per your browser image
  • After you are done installing, head over to X image
  • Once you are in X hover onto the Extensions tab in your browser and click on the Cookie Editor untuk a pop up appears image
  • Click on the Export on the most right section of the pop up and copy your cookie information DO NOT SHARE THIS TO ANYONE image
  • Select the JSON export option image
  • Open your Visual Studio Code and paste in your cookie information inside of the cookie.json file image

3. Setup the environment

  • Before we continue on doing anything else, you would need to go inside the project directory first by typing in cd ./TwitterScrapper inside the terminal image
  • (Optional) To maintain a clean workspace, you could create a venv by using typing in python -m venv venv inside the terminal image
  • (Optional) After you have created the virtual environment, you need to activate it by typing in venv\Scripts\activate.ps1 inside the terminal on Windows or source venv/bin/activate on MacOs / Linux image
  • Type in pip install -r req.txt inside the terminal to install all of the dependencies image

4. Using the Scraper

  • After you have done step 1-3, type in python main.py to run the scraper image
  • Voila, you now can use the scraper type in -help for more information or -quit to cancel it, congratulations and good luck for your researches 🥳🎊

Help

👉 Discord : Ox. 👉 Instagram : @daffatarigan69

About

This is made as my work as a TA for Business Intelligence Class, all usage are educational only!

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages