Skip to main content

No project description provided

Project description

periodical_requests_recorder

Latest PyPI version

Usage

periodical_recorder example.yaml

yaml data format example.

gmail_address: example@gmail.com
gmail_oauth: "~/yagmail_secret.json"
tasks:
  -
    name: "some_data"
    url: "https://example.com/somedata.csv"
    record_dir: "~/hist_data/"
    output_file_format: "{name}/{name}_%Y-%m-%d.csv"
    cron_expr: "0 * * * * * *"
    encoding: "ms932"
  -
    name: "some_data_2"
    url: "https://www.google.com/"
    record_dir: "~/hist_data/"
    output_file_format: "{name}/{name}_%Y-%m-%d.txt"
    cron_expr: "@reboot"
    target_elements:
      -
        element: "#gws-output-pages-elements-homepage_additional_languages__als"
        index: 3

Request result will be stored in the record_dir with your output_file_format.

If you set up yagmail, error messages will be sent to your address.

cron_expr format is the same as Crython.

Installation

You can install this with pip.

Requirements

Compatibility

Licence

Authors

periodical_requests_recorder was written by fx-kirin.

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

periodical_requests_recorder-0.2.2.tar.gz (4.3 kB view details)

Uploaded Source

File details

Details for the file periodical_requests_recorder-0.2.2.tar.gz.

File metadata

  • Download URL: periodical_requests_recorder-0.2.2.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.3

File hashes

Hashes for periodical_requests_recorder-0.2.2.tar.gz
Algorithm Hash digest
SHA256 31ed9bb853958e2cdc27e4e3eff21a3b7aac12ec96a1d29e20fdda212413842b
MD5 833d5a98b173e3d4e0e9736b8f3310de
BLAKE2b-256 b5168d48b7eb5e5e5aa60894eb14ff4de709b32a1a1a697f40552d6159151562

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