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 bs4 import BeautifulSoup | |
| import requests | |
| r = requests.get("https://aws.amazon.com/whitepapers/") | |
| data = r.text | |
| soup = BeautifulSoup(data,"lxml") | |
| for link in soup.findAll('a',href=True): | |
| #skip all other liks except pdf ones | |
| if not link['href'].endswith('pdf'): |
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 | |
| import names | |
| import random | |
| import json | |
| token = '' | |
| #program_id = '' | |
| program_id = '2ba0d47c-dea6-11e8-b2b3-06f77de3a7f0' # Test Program | |
| location_id = '09942cd5-f100-42c3-a175-cd620cd3bc7c' # Kilimani |
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 | |
| import json | |
| import csv | |
| token = '' | |
| program_id = '' | |
| def get_auth_token(token,program_id): | |
| endpoint = 'https://xxx.mycompany.yy/auth/login' | |
| payload = { |
NewerOlder