Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/deejungx/wiki-bot

Web scraping implementation for fetching Text from Wikipedia Articles
https://github.com/deejungx/wiki-bot

beautifulsoup pyperclip python requests webscraping wikipedia

Last synced: about 1 month ago
JSON representation

Web scraping implementation for fetching Text from Wikipedia Articles

Awesome Lists containing this project

README

        

# WikiBot

![Wikipedia Scraper](/images/wikiScraper.jpg)

This code is an implementation of web scraping for fetching texts from Wikipedia articles using command line input. To run the code, type the topic you want to search for as the first argument.

```bash
python wiki.py Nepal
```

## Requirements

- Python 3.7

## Setup

- Clone this repository
```
git clone https://github.com/deejungx/wiki-bot.git
```
- Open the directory
```
cd wiki-bot
```
- Install requests
```
pip3 install requests
```
- Install BeautifulSoup
```
pip3 install bs4
```
- Install pyperclip
```
pip3 install pyperclip
```

# Disclaimer

While there aren't any established laws against the use of web scraping, there are guidelines and instructions for understanding proper use of such tools without any serious consequences.

Follow this link to read Wikipedia's instruction on the use of Web scraping on their platform:

[Wikipedia Web scraping guideline](https://en.wikipedia.org/wiki/Web_scraping)