Enable temporarily Gitea Actions web scraping.
Project description
Gitea Actions Webscraper
Install with:
pip install gitea_actions_webscraper
Example usage:
from gitea_actions_webscraper import GiteaActionsWebscraper
import json
print('Verifying Gitea Actions Webscraper configuration...')
gitea_actions_webscraper = GiteaActionsWebscraper('https://codeberg.org', 'User/Repository', 'YOUR_i_like_gitea_COOKIE')
print('Gitea Actions Webscraper configuration verified!')
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.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c8129f5c49b4f645121c1f5198737d5f483162640c9ab19105e0d1f96fd67eca |
|
MD5 | af0a8369c19e1ddc4d0cc07d94d06bce |
|
BLAKE2b-256 | 23675a04abdf8052aa126ccaec6f147bd1f118068c048d2ca70e184190cb6f06 |
Close
Hashes for gitea_actions_webscraper-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5d50e784406c1044e67cbdd7b4d6d27e984ae9ad15127ca33decb07bddb2126b |
|
MD5 | 28c049e7ad9636a9b9651ead4d636fb3 |
|
BLAKE2b-256 | d3e27af7a3c87719c02229bc5bd5b85c22fdcdfafd6a59ecedd9a4fdb48aacc1 |