Last active
June 28, 2019 15:27
-
-
Save plyrthn/56c2660069d1db2a13068681cfa7fbab to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import requests | |
| id = 1 | |
| while id < 1000: | |
| headers = { | |
| 'authority': 'smashstages.com', | |
| 'upgrade-insecure-requests': '1', | |
| 'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36', | |
| 'accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3', | |
| 'referer': 'https://smashstages.com/stage.php?id='+str(id), | |
| 'accept-encoding': 'gzip, deflate, br', | |
| 'accept-language': 'en-US,en;q=0.9', | |
| 'cookie': '__cfduid=d9719eba18fb383972b4ba0b3d5d6df2f1561342985; PHPSESSID=8ad78197250d52e169492d4b29413903', | |
| } | |
| params = ( | |
| ('id', str(id)), | |
| ) | |
| id += 1 | |
| response = requests.get('https://smashstages.com/download.php', headers=headers, params=params) | |
| open('stage_'+str(id)+'.bin', 'wb').write(response.content) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment