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.1.0.tar.gz (38.8 kB view details)

Uploaded Source

Built Distribution

ngscrape-1.1.0-py3-none-any.whl (27.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for ngscrape-1.1.0.tar.gz
Algorithm Hash digest
SHA256 1dd26e91df1048b3ed7dc5d144954df714c6fafb09a2965b54ef11263d52a298
MD5 285189ee63e9d345053487cf6f703fb6
BLAKE2b-256 cc9a67f0488c171bd56372cccdf1aba87b075f6caff172460e5847a3dea0315e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ngscrape-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 27.5 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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f9cb6a2fb3684ca611071553ac3fbaf963fa91e40fc376ac5448534e5baedc16
MD5 abc87caf796845c5997ebb3f5eedef00
BLAKE2b-256 f68b2b8b32cf7c4cefcc4c0ce47b89f8919c60956c432ecbbde87b5efa6061e8

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