finscraper


Namefinscraper JSON
Version 0.2.5 PyPI version JSON
download
home_page
SummaryWeb scraping API for Finnish websites
upload_time2023-09-10 13:48:02
maintainer
docs_urlNone
author
requires_python>=3.8
licenseMIT License Copyright (c) 2022 Jesse Myrberg Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords web scraping finnish nlp scrapy
VCS
bugtrack_url
requirements attrs pandas selenium scrapy tqdm webdriver-manager
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # finscraper

[![Spiders](https://github.com/jmyrberg/finscraper/actions/workflows/spiders.yml/badge.svg)](https://github.com/jmyrberg/finscraper/actions/workflows/spiders.yml)
[![Documentation](https://readthedocs.org/projects/finscraper/badge/?version=latest)](https://finscraper.readthedocs.io/en/latest/?badge=latest)

![finscraper cover](https://github.com/jmyrberg/finscraper/blob/master/docs/cover.jpg?raw=true)

The library provides an easy-to-use API for fetching data from various Finnish websites:

| Website                                                        | Type              | Spider API class   |
|----------------------------------------------------------------|-------------------|--------------------|
| [Ilta-Sanomat](https://www.is.fi)                              | News article      | `ISArticle`        |
| [Iltalehti](https://www.il.fi)                                 | News article      | `ILArticle`        |
| [YLE Uutiset](https://www.yle.fi/uutiset)                      | News article      | `YLEArticle`       |
| [Suomi24](https://keskustelu.suomi24.fi)                       | Discussion thread | `Suomi24Page`      |
| [Muusikoiden.net](https://www.muusikoiden.net)                 | Discussion thread | `MNetPage`         |
| [Vauva](https://www.vauva.fi)                                  | Discussion thread | `VauvaPage`        |
| [Oikotie Asunnot](https://asunnot.oikotie.fi/myytavat-asunnot) | Apartment ad      | `OikotieApartment` |
| [Tori](https://www.tori.fi)                                    | Item deal         | `ToriDeal`         |

Documentation is available at [https://finscraper.readthedocs.io](https://finscraper.readthedocs.io) and [simple online demo here](https://jmyrberg.com/demo-projects/finscraper).


## Installation

`pip install finscraper`


## Quickstart

Fetch 10 news articles as a pandas DataFrame from [Ilta-Sanomat](https://is.fi):

```python
from finscraper.spiders import ISArticle

spider = ISArticle().scrape(10)

articles = spider.get()
```

The API is similar for all the spiders:

![Finscraper in action](https://github.com/jmyrberg/finscraper/blob/master/docs/finscraper.gif)


## Contributing

Please see [CONTRIBUTING.md](https://github.com/jmyrberg/finscraper/blob/master/CONTRIBUTING.md) for more information.


---

Jesse Myrberg (jesse.myrberg@gmail.com)

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "finscraper",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": "",
    "keywords": "web,scraping,finnish,nlp,scrapy",
    "author": "",
    "author_email": "Jesse Myrberg <jesse.myrberg@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/19/82/c379483d86d03d3cf859e0fddaf9107b49b64200fcf7398687364eaa2e06/finscraper-0.2.5.tar.gz",
    "platform": null,
    "description": "# finscraper\n\n[![Spiders](https://github.com/jmyrberg/finscraper/actions/workflows/spiders.yml/badge.svg)](https://github.com/jmyrberg/finscraper/actions/workflows/spiders.yml)\n[![Documentation](https://readthedocs.org/projects/finscraper/badge/?version=latest)](https://finscraper.readthedocs.io/en/latest/?badge=latest)\n\n![finscraper cover](https://github.com/jmyrberg/finscraper/blob/master/docs/cover.jpg?raw=true)\n\nThe library provides an easy-to-use API for fetching data from various Finnish websites:\n\n| Website                                                        | Type              | Spider API class   |\n|----------------------------------------------------------------|-------------------|--------------------|\n| [Ilta-Sanomat](https://www.is.fi)                              | News article      | `ISArticle`        |\n| [Iltalehti](https://www.il.fi)                                 | News article      | `ILArticle`        |\n| [YLE Uutiset](https://www.yle.fi/uutiset)                      | News article      | `YLEArticle`       |\n| [Suomi24](https://keskustelu.suomi24.fi)                       | Discussion thread | `Suomi24Page`      |\n| [Muusikoiden.net](https://www.muusikoiden.net)                 | Discussion thread | `MNetPage`         |\n| [Vauva](https://www.vauva.fi)                                  | Discussion thread | `VauvaPage`        |\n| [Oikotie Asunnot](https://asunnot.oikotie.fi/myytavat-asunnot) | Apartment ad      | `OikotieApartment` |\n| [Tori](https://www.tori.fi)                                    | Item deal         | `ToriDeal`         |\n\nDocumentation is available at [https://finscraper.readthedocs.io](https://finscraper.readthedocs.io) and [simple online demo here](https://jmyrberg.com/demo-projects/finscraper).\n\n\n## Installation\n\n`pip install finscraper`\n\n\n## Quickstart\n\nFetch 10 news articles as a pandas DataFrame from [Ilta-Sanomat](https://is.fi):\n\n```python\nfrom finscraper.spiders import ISArticle\n\nspider = ISArticle().scrape(10)\n\narticles = spider.get()\n```\n\nThe API is similar for all the spiders:\n\n![Finscraper in action](https://github.com/jmyrberg/finscraper/blob/master/docs/finscraper.gif)\n\n\n## Contributing\n\nPlease see [CONTRIBUTING.md](https://github.com/jmyrberg/finscraper/blob/master/CONTRIBUTING.md) for more information.\n\n\n---\n\nJesse Myrberg (jesse.myrberg@gmail.com)\n",
    "bugtrack_url": null,
    "license": "MIT License  Copyright (c) 2022 Jesse Myrberg  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.  THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.",
    "summary": "Web scraping API for Finnish websites",
    "version": "0.2.5",
    "project_urls": {
        "Documentation": "https://finscraper.readthedocs.io",
        "Homepage": "https://github.com/jmyrberg/finscraper"
    },
    "split_keywords": [
        "web",
        "scraping",
        "finnish",
        "nlp",
        "scrapy"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "13a909fb19b25b4a92f0231c1f7759ac7dd5cd6d10f2fad9631b0d2df5275564",
                "md5": "f61f94c3fe76011867a722ba29a031e2",
                "sha256": "9bbc914b0e3eda951e31dba978cca23775121009a0baabc0cb008d614a64be5a"
            },
            "downloads": -1,
            "filename": "finscraper-0.2.5-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "f61f94c3fe76011867a722ba29a031e2",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 31721,
            "upload_time": "2023-09-10T13:48:00",
            "upload_time_iso_8601": "2023-09-10T13:48:00.777128Z",
            "url": "https://files.pythonhosted.org/packages/13/a9/09fb19b25b4a92f0231c1f7759ac7dd5cd6d10f2fad9631b0d2df5275564/finscraper-0.2.5-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "1982c379483d86d03d3cf859e0fddaf9107b49b64200fcf7398687364eaa2e06",
                "md5": "01d952c616f934c3c717364502be2350",
                "sha256": "79906e8e8004718a470cfda7e36e1bf42a02bdf5da199743adb4b64f0a27d2e9"
            },
            "downloads": -1,
            "filename": "finscraper-0.2.5.tar.gz",
            "has_sig": false,
            "md5_digest": "01d952c616f934c3c717364502be2350",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 24967,
            "upload_time": "2023-09-10T13:48:02",
            "upload_time_iso_8601": "2023-09-10T13:48:02.507038Z",
            "url": "https://files.pythonhosted.org/packages/19/82/c379483d86d03d3cf859e0fddaf9107b49b64200fcf7398687364eaa2e06/finscraper-0.2.5.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-09-10 13:48:02",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "jmyrberg",
    "github_project": "finscraper",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [
        {
            "name": "attrs",
            "specs": [
                [
                    "==",
                    "21.4.0"
                ]
            ]
        },
        {
            "name": "pandas",
            "specs": [
                [
                    "==",
                    "1.4.3"
                ]
            ]
        },
        {
            "name": "selenium",
            "specs": [
                [
                    "==",
                    "4.3.0"
                ]
            ]
        },
        {
            "name": "scrapy",
            "specs": [
                [
                    "==",
                    "2.7.1"
                ]
            ]
        },
        {
            "name": "tqdm",
            "specs": [
                [
                    "==",
                    "4.64.0"
                ]
            ]
        },
        {
            "name": "webdriver-manager",
            "specs": [
                [
                    "==",
                    "2.4.0"
                ]
            ]
        }
    ],
    "lcname": "finscraper"
}
        
Elapsed time: 0.11078s