Skip to main content

Newgrounds flash game scraper

Project description

NGScrape

Newgrounds game scraper made with beautifulsoup4 and requestslib.

NGScrape is licensed under the GNU Affero General Public License v3.0. If a copy is not included with this file, you can find one at https://www.gnu.org/licenses/agpl-3.0.en.html.

Please star is this was useful!

Functions: __init__(debug: bool = False) -> None Start a new NGScrape Instance. scrape_game_by_url(url: str, download: str, filename: str) -> None Scrape a flash game by url. Parameters: url (str): The URL of the flash game. For example, the URL for Alien Homonid is https://www.newgrounds.com/portal/view/59593. download (str): The directory to download the file to. filename (str): The name of the downloaded file. Example parameters: url = 'https://www.newgrounds.com/portal/view/59593' download = 'testdir' filename = 'game.swf' Example output with debug mode: NGScrape: Made request to https://www.newgrounds.com/portal/view/59593 and got status code 200 NGScrape: Found flash game link https://uploads.ungrounded.net/59000/59593_alien_booya.swf?f1101313499 NGScrape: Downloaded swf file to testdir/game.swf

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

ngscrape-1.0.0.tar.gz (38.7 kB view details)

Uploaded Source

Built Distribution

ngscrape-1.0.0-py3-none-any.whl (27.4 kB view details)

Uploaded Python 3

File details

Details for the file ngscrape-1.0.0.tar.gz.

File metadata

  • Download URL: ngscrape-1.0.0.tar.gz
  • Upload date:
  • Size: 38.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.0

File hashes

Hashes for ngscrape-1.0.0.tar.gz
Algorithm Hash digest
SHA256 26d1339f36be38219babea5ad6fff80c1d3372b77eb1152de6cc7615d137fa7c
MD5 e4aeaba27bb219492aeaae22dc060360
BLAKE2b-256 0fb746491290937ee4e88f5d7d7f71cb56d55f75678e2d5e1a27446200ee276d

See more details on using hashes here.

File details

Details for the file ngscrape-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: ngscrape-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 27.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.0

File hashes

Hashes for ngscrape-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 68e00d227deecaa761c78ed05c3009e86888f0e3417fc6cc7b90cc6557615d87
MD5 e6a8a97983f58967029c4d16efbe3367
BLAKE2b-256 259d1f82db3e0a9e260c655231560445929144d61575cfb7ea205a4890cc8809

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page