Skip to content

This projects gets a list of leaders from wikipedia and prints a short notes on them in a new file

Notifications You must be signed in to change notification settings

audeha/wikipedia-scraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wikipedia Scraper

Welcome to the Wikipedia Scraper!

        __________      ________________ _______ ______ ________________
|\     /\__   __| \    /\__   __(  ____ (  ____ (  __  \\__   __(  ___  )
| )   ( |  ) (  |  \  / /  ) (  | (    )| (    \| (  \  )  ) (  | (   ) |
| | _ | |  | |  |  (_/ /   | |  | (____)| (__   | |   ) |  | |  | (___) |
| |( )| |  | |  |   _ (    | |  |  _____|  __)  | |   | |  | |  |  ___  |
| || || |  | |  |  ( \ \   | |  | (     | (     | |   ) |  | |  | (   ) |
| () () ___) (__|  /  \ ___) (__| )     | (____/| (__/  ___) (__| )   ( |
(_____________________ _______________ _________________________|/     \|
      (  ____ (  ____ (  ____ (  ___  (  ____ (  ____ (  ____ )
      | (    \| (    \| (    )| (   ) | (    )| (    \| (    )|
      | (_____| |     | (____)| (___) | (____)| (__   | (____)|
      (_____  | |     |     __|  ___  |  _____|  __)  |     __)
            ) | |     | (\ (  | (   ) | (     | (     | (\ (
      /\____) | (____/| ) \ \_| )   ( | )     | (____/| ) \ \__
      \_______(_______|/   \__|/     \|/      (_______|/   \__/

 

ascii from http://www.patorjk.com/software/taag/

Description

This programs calls an API that gives a list of countries and a list of leaders for each country.

Each leader is represented by an ID linked to a Wikipedia url.

The programs reads the first paragraph of each leader and writes the output in a json file.

Installation

git clone [email protected]:audeha/wikipedia-scraper.git

cd wikipedia-scraper

Usage

pip install -r requirements.txt

python3 main.py

The results are in "leaders_data.json" --> open with your browser

Visuals

Alt Text

About

This projects gets a list of leaders from wikipedia and prints a short notes on them in a new file

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages