Skip to main content

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.

Metadata

Release files for periodical-requests-recorder 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for periodical-requests-recorder 0.4.0
File Size Uploaded
periodical_requests_recorder-0.4.0.tar.gz 5.1 kB Details

Release files / periodical_requests_recorder-0.4.0.tar.gz

Download URL periodical_requests_recorder-0.4.0.tar.gz
Size 5.1 kB
Tags Source
SHA-256 checksum
How to use checksums
61be5b1817a9163c6b1a081f52093a903cc675fe6d067baf72d2ecc3171a3511
BLAKE2b-256 checksum
How to use checksums
0675f3a06ba1511dc0953952f403c167db1c5d9918c51fc1c3e55f958479ab5b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.4

Release history Release notifications | RSS feed

This release

0.4.0 This release

1 release file

0.3.0

1 release file

0.2.9

1 release file

0.2.8

1 release file

0.2.7

1 release file

0.2.6

1 release file

0.2.5

1 release file

0.2.4

1 release file

0.2.3

1 release file

0.2.2

1 release file

0.2.1

1 release file

0.2.0

1 release file

0.1.4

1 release file

0.1.3

1 release file

0.1.2

1 release file

0.1.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page