Skip to main content

Newgrounds flash game scraper powered by bs4 and requests

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:
    • 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.2.0.tar.gz (39.5 kB view details)

Uploaded Source

Built Distribution

ngscrape-1.2.0-py3-none-any.whl (28.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for ngscrape-1.2.0.tar.gz
Algorithm Hash digest
SHA256 6075d372f9e01723ef677d7e68399aad77d64d061454d75a86093c2f4ce2069d
MD5 da54fabff68b72a548a4a6ab38451eef
BLAKE2b-256 130994572fcd6e500877662c4453d9dd5e97cf67e3813a352762ecdf72681b33

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ngscrape-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 28.1 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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1c98bf7d96d1b91647618f7e577138b31351c27dc30303323fc6271616602b19
MD5 b4997fd2e7833491cf62a0bcb51d7063
BLAKE2b-256 b3252e7d27f49c78bd92f17e5f17de26efcd31a02348a1107461f024a93cd26d

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