No project description provided
Project description
periodical_requests_recorder
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
periodical_requests_recorder was written by fx-kirin.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for periodical_requests_recorder-0.2.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 371d5b0b2e1515b7427303b108a4e827fb90c35ea5685433630e405ebac6662d |
|
MD5 | b3c3a647b8e9cad8d2828c8c54c8486f |
|
BLAKE2b-256 | 63e829fb4beb2ff73842f49b569a5961e3c64ee416f2e49dd5a2d16be6b5043d |