Coder Social home page Coder Social logo

trumpdaily's Introduction

TRUMP DAILY

Trump daily is a crawler that crawls the top 25 news contents that contains the top-featured man on the planet, US President Donald Trump. Currently, the crawler crawls from

  • CNN
  • Twitter

Installation

The crawler is built using python 3.6. So you would need to set up Python 3.6. The crawlers can be run as scheduled task (cron job) or can be run manually.

  • Create a mysql/mariadb database named 'trumpdaily' in your localhost/hosted server
  • Upload the SQL file 'trumpdaily.sql' to create the tables
  • Install the required python3.6 libraries
  • Run mainCrawler.py to start the crawler
  • Connect your website or web application to query the feed from the database and display on the site

Required libraries

The python libraries and the additional tools that are required to set this project are:

Libraries/Tools Purpose Reference
MySQL To save the collected feeds https://www.mysql.com/
Github Git repository plugins/github/README.md
Selenium 3.141.0 To render dynamic web pages of CNN https://pypi.org/project/selenium/
Beautifulsoup4 4.6.3 To build effective crawler to parse through contents https://pypi.org/project/beautifulsoup4/
Configparser 3.5.0 To parse configuration files https://pypi.org/project/configparser/
time 1.0.0 Default python library to add delays into twitter scrapping https://pypi.org/project/time/

trumpdaily's People

Contributors

tunchunairarko avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.