A client to interact with freud-net API
Project description
Freud API Crawler
A client to interact with freud-net API
install
- create a virtual environment and install the package with
pip install freud_api_crawler - provide FRD_USER (freud-net username) and FRD_PW (freud-net password) as environment varibles, e.g. by
- create a file called
env.secretto store you freud-net api credentials - run
./set_env_variables.sh
- create a file called
example env.secret
FRD_USER=username
FRD_PW=password
usage
Download a Work
download_work -s . -w 2da622da-de12-46e4-bb1d-c9c4a7ae877e-spath to save the created files into;.will write the files into./werke/...-wthe Drupal-API-ID of the Werk to process (see below on how to get those IDs)
dev
-
clone the repo
-
create virtual env
-
install dev-depenencies
pip install -r requirements_dev.txt -
install the package (so you have the actual dependencies as well)
pip install -e . -
run test with
coverage run -m pytest -v -
create test-report
coverage reportorcoverage html
api-utils
get work by title
https://www.freud-edition.net/jsonapi/node/werk?filter[field_titel.value]=%C3%9Cber%20den%20Traum https://www.freud-edition.net/jsonapi/node/werk?filter[field_titel.value]=Über den Traum
get manifestaion by node id
this ID can be taken from edit-url, e.g. https://www.freud-edition.net/node/51190/edit
https://www.freud-edition.net/jsonapi/node/manifestation?filter[drupal_internal__nid]=51190
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file freud_api_crawler-1.0.0.tar.gz.
File metadata
- Download URL: freud_api_crawler-1.0.0.tar.gz
- Upload date:
- Size: 13.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4aa95b0ee60761f875e5b980f69d0d261ca984d0e065eef017fb77587fb92b4f
|
|
| MD5 |
a6d334594512c66138079fba289d33a1
|
|
| BLAKE2b-256 |
b04ffa59a71fdf50588762f9cc239ee07ccfa3ba2295e0e57a2d90af67e9aa12
|
File details
Details for the file freud_api_crawler-1.0.0-py3-none-any.whl.
File metadata
- Download URL: freud_api_crawler-1.0.0-py3-none-any.whl
- Upload date:
- Size: 14.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
405c5b5e7768a89b03b7fbfd52ec18ba8835eba6a35aca6ad2d2b9b84406526c
|
|
| MD5 |
38b182fedc134ce853528d39bb3737bf
|
|
| BLAKE2b-256 |
b2e839b52b3bc99a1ff2186b7ee5c67aaccc2da3df2073e3057c0fb4d8461d04
|