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 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.5.tar.gz (6.2 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.5-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for arnoldas_a_mod1_atsiskaitymas-0.1.5.tar.gz
Algorithm Hash digest
SHA256 8eaed7a955a78d4cfd3eab11c0bdc774cd83434409c574259c0f0edbdcd47971
MD5 7fc95210ac66e7242ea4c20ef6f1a4c4
BLAKE2b-256 b874955150921f73cf5ff1f62a0e9042a22bce50426d50ee2c245b0b47e93233

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for arnoldas_a_mod1_atsiskaitymas-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 012b3179922f882ab8c6094d734a3d5be340b14e7af861576de2f5616aa9f24e
MD5 d222d9fde31f97b7f2f6464ccaff59ee
BLAKE2b-256 4f8ebf0addca0ccabd0c66b9586141e9d86180c4672dcd457060ca0e1a87a9dd

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