finscraper
The library provides an easy-to-use API for fetching data from various Finnish websites:
Website |
Type |
Spider API class |
---|---|---|
News article |
|
|
News article |
|
|
News article |
|
|
Discussion thread |
|
|
Discussion thread |
|
|
Apartment ad |
|
|
Item deal |
|
Documentation is available at https://finscraper.readthedocs.io and simple online demo here.
Installation
pip install finscraper
Quickstart
Fetch 10 news articles as a pandas DataFrame from Ilta-Sanomat:
from finscraper.spiders import ISArticle
spider = ISArticle().scrape(10)
articles = spider.get()
The API is similar for all the spiders:
Contributing
Please see CONTRIBUTING.md for more information.
Jesse Myrberg (jesse.myrberg@gmail.com)