Skip to content

AmineMekki01/Twitter_Comercial_Segments

 
 

Repository files navigation

Twitter Comercial Segments


Twitter General Multi Threaded Scrapper With Selenium and Beautifoul-Soup

We presented this project (initally a class project) to our fellow students (@IMT Mines Ales) today. You can check the presentation (in English) here:Presentation Link

Potential aspect : improving the code and turn it into a python library

Run Data Analysis in Colab To get some usefull infos about your business

Data Analysis

A simple python script to scrap tweets and users , the object is to get the data ready for some analysis studies , we choose MySQL to be the database for our scrapped Data .

Tweet Schema :

  • Username
  • Name
  • PostDate
  • TweetText
  • ReplyCount
  • RetweetCount
  • LikeCount
  • Views

Usage


  1. Clone

  2. Install dependencies : pip install - r requirements.txt

  3. create .env with the password of your twitter

  4. Run docker container and create image :

docker image build -t twitter-scrap .
docker run twitter-scrap

Dockerhub repository : Click Here

To export mysql database :

mysqldump -u YourUser -p YourDatabaseName > wantedsqlfile.sql

To export mongodb database :

mongodump --db mydb --out backup/

About

Create a web scrapping app for scrapping twiterr

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 97.9%
  • Python 2.1%