Skip to main content

A Python project for scraping book info and football results

Project description

arnoldas_a_mod1_atsiskaitymas

Package for scraping book information and football match results from specified websites.

Installation

pip install arnoldas-a-mod1-atsiskaitymas

PyPI Link: https://pypi.org/project/arnoldas-a-mod1-atsiskaitymas/

Usage

A package is using selenium for web scraping and supports data export in CSV and dictionary formats. IMPORTANT. In order to use a package, user needs to install Chrome WebDriver and Update the path in the football_results.py and book_info.py files from path = 'C:\Tools\chromedriver\chromedriver.exe' to yours

Parameters

A package can be run from main, user has to determine:

  • source = "book_info" or "football_results"
  • timeout = in seconds
  • return_format = "dict" or "csv"

Example

from arnoldas_a_mod1_atsiskaitymas.crawler import Crawl

def main():
    source = "book_info"
    timeout = 60
    return_format = "dict"

    results = Crawl(source=source, timeout=timeout, return_format=return_format).web_results()
    if results:
        print("Gauti duomenys:")
        print(results)

if __name__ == "__main__":
    main()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

arnoldas_a_mod1_atsiskaitymas-0.1.1.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

arnoldas_a_mod1_atsiskaitymas-0.1.1-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

Details for the file arnoldas_a_mod1_atsiskaitymas-0.1.1.tar.gz.

File metadata

File hashes

Hashes for arnoldas_a_mod1_atsiskaitymas-0.1.1.tar.gz
Algorithm Hash digest
SHA256 69778fbb024da64942e8cb32df6b0b5aa6772e4dd496cce81fe7c12a7e50e989
MD5 6e5f0f0f50638fc4d48798874dc9b945
BLAKE2b-256 6c7a83373c1dce36fde0351fbe4e6e3cc3a94014bc2f40359ae7ebb92d0f7f9b

See more details on using hashes here.

File details

Details for the file arnoldas_a_mod1_atsiskaitymas-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for arnoldas_a_mod1_atsiskaitymas-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9611a7ac22c610d3aec0b7a2dcede7d33cb313fa48eb7d73598094c7ea034131
MD5 b4f21224b140ee9fe0158e815ec7957f
BLAKE2b-256 aec2c94e99603ba6f6fb64825d74b32e9802c9128310ab3a4504776d2ae4ebda

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page