Code Monkey home page Code Monkey logo

bs4_news_scrapper's Introduction

THIS PACKAGE IS SETUP TO SCRAP THREE NIGERIAN NEWS PAPERS NAMELY: i. The Guardian ii. The Punch iii. The Vanguard

Modules Used are i. BeautifulSoup ii. Requests

It Scraps the News papers homepage and returns there Headlines, time and Summary in the following files respectively i. ../desktop/Headlines/{date-scrapepd}/Guardian-{date-scrapepd}.txt ii. ../desktop/Headlines/{date-scrapepd}/Punch-{date-scrapepd}.txt iii. ../desktop/Headlines/{date-scrapepd}/Vanguard-{date-scrapepd}.txt

TREE EXAMPLE ../desktop /Headlines /June-06-2020 /Guardian-June-06-2020.txt

From the explanations above, when the project runs, it locates your desktop and creates a folder named (Headlines) then inside the (Headlines) folder it creates another folder (date-scrapepd i.e today's date)[this folder is created to uniquely identify each headlines scrapped in a particular day], then inside the (date-scrapped) folder it creates our scrapped files with the name of there company and date e.g(Guardian-12-06-2020.txt).

execute the code with ---> python3 run.py or python run.py

bs4_news_scrapper's People

Contributors

tokelee avatar

Watchers

James Cloos 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.