https://github.com/bituvo/pygrounds
Python web-scraping API for Newgrounds
https://github.com/bituvo/pygrounds
api beautifulsoup beautifulsoup4 newgrounds newgrounds-audio-downloader python-api web-scraping web-scraping-python
Last synced: 3 months ago
JSON representation
Python web-scraping API for Newgrounds
- Host: GitHub
- URL: https://github.com/bituvo/pygrounds
- Owner: Bituvo
- License: gpl-3.0
- Created: 2022-08-24T17:43:37.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-03-23T16:56:07.000Z (about 1 year ago)
- Last Synced: 2025-01-31T04:06:59.800Z (5 months ago)
- Topics: api, beautifulsoup, beautifulsoup4, newgrounds, newgrounds-audio-downloader, python-api, web-scraping, web-scraping-python
- Language: Python
- Homepage: https://www.newgrounds.com/
- Size: 31.3 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# `pygrounds` - Python Newgrounds API
This is the first implementation of a Newgrounds API written in Python.
# `Audio`
## Initialization
```python
song = Audio(533927)
```## Attributes
| Attribute | Type | Description |
| ---------------------- | -------------------- | ------------------------------------------- |
| `id` | `int` | The song ID |
| `name` | `str` | The song name |
| `artists` | `list` | A list of the song's artists |
| `artist` | `str` | The song's primary artist |
| `listens` | `int` | Amount of listens on the song |
| `votes` | `int` \| `None` | Amount of votes on the song |
| `faves` | `int` \| `None` | Amount of faves on the song |
| `score` | `float` \| `None` | The song's score, as a proportion |
| `genre` | `str` | The song's genre |
| `date_published` | `datetime` | The date and time the song was published |
| `audio_type` | `str` | Type of audio, eg "loop", "podcast" |
| `file_size` | `str` | Human-readable file size of the song |
| `duration` | `int` | Duration of the song in seconds |
| `tags` | `list` | List of the song's tags |
| `author_comments_html` | `str` \| `None` | Author comments section as HTML code |
| `short_description` | `str` \| `None` | A short description of the song |
| `frontpaged` | `bool` | Whether or not the song was ever frontpaged |
| `date_frontpaged` | `datetime` \| `None` | The date the song was frontpaged |
| `download_url` | `str` | Download URL for the song |
| `track_image` | `str` | URL for the track image of the song |
| `refresh` | method | Refreshes all information on the song |