Enable temporarily Gitea Actions web scraping.
Project description
Gitea Actions Webscraper
from gitea_actions_webscraper import GiteaActionsWebscraper
import json
gitea_actions_webscraper = GiteaActionsWebscraper('https://codeberg.org', 'User/Repository', 'YOUR_i_like_gitea_COOKIE')
actions = gitea_actions_webscraper.getFirstActionsPage()
lastAction = actions[0]
print(lastAction.commitTitle)
print(json.dumps(lastAction.getArtifacts(), indent = 4))
print(json.dumps(lastAction.getLogs(), indent = 4))
messages = '\n'.join([stepLog['message'] for stepLog in lastAction.getStepLogs(0)])
print(messages)
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
Built Distribution
Close
Hashes for gitea_actions_webscraper-0.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 03ef45b23dd2a18b53624dc37e83d3a4908d3476a4eac4a89608ddcba2040a86 |
|
MD5 | 3dce958bb388b887639800c043b4dc90 |
|
BLAKE2b-256 | 8a5b03937815d2d7bdc9aa5f1025e84dc4a2e374b8ae1fa9e23d8cd5948009a7 |
Close
Hashes for gitea_actions_webscraper-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f04338b98d8fedd355435bc35c1a86bde19e2a8f9742319d4bab5d289baa11f2 |
|
MD5 | 3a1244e6b4db6c53ac036f8bda52eb35 |
|
BLAKE2b-256 | eb5cecf9b4529907d892cc2d041007f87fe7b398521a5b7ec8f75903679f3fc2 |