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
| from boto3 import session | |
| from botocore.client import Config | |
| import progressbar, os | |
| ACCESS_ID = '' | |
| SECRET_KEY = '' | |
| SPACE_NAME = '' | |
| REGION = '' # Example: sf2 | |
| FILE_NAME = '' # Full path to file | |
| UPLOAD_NAME = '' # Path to save file in DO Space |
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
| #!/usr/bin/env python3 | |
| """Interact with HackerOne Hacker API. | |
| First generate an API token through the Hackerone website and initialize the class: | |
| >>> username = "YOUR_USER_NAME" | |
| >>> token = "GENERATE_AN_API_TOKEN_THROUGH_HACKERONE_WEBSITE" | |
| >>> session = HackerOneSession(username, token) |