Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import requests
- from bs4 import BeautifulSoup
- url = 'https://lovecleanstreets.com'
- s = requests.Session()
- reportsfront = s.get(url)
- CategoryId = -1
- Completed = ''
- ReportedStartDate = '10/03/2018'
- Tag = ''
- Take = 5
- WardId = ''
- XRequestedWith = 'XMLHttpRequest'
- payload = {'CategoryId' : CategoryId,
- 'Completed' : '',
- 'ReportedStartDate' : ReportedStartDate,
- 'Tag' : Tag,
- 'Take' : Take,
- 'WardId' : WardId,
- 'X-RequestedWith' : XRequestedWith}
- datedreports = s.post(url, data = payload)
- bs4_datedreports = BeautifulSoup(datedreports.text, 'html.parser')
- print (bs4_datedreports.text)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement