Skip to content

edjdavid/web_crawler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

web_crawler

Scripts for crawling the web

chrome_cookie.py

Load and use manually copied cookies from the Chrome dev console on the requests module.

Sample usage:

req = create_session(load_cookie('test.cookie'))
r = req.get('https://mail.google.com/mail/u/0/#inbox')
print(r.text)

To copy cookies from Chrome:

  • Open Chrome browser
  • Login to any website that needs to be crawled
  • F12 -> Application (tab) -> Storage (Cookies) (Left pane) -> Select cookie for website
  • Select any row on the right pane -> Select all (ctrl+a) -> Copy (ctrl+c)
  • Save to any file and replace test.cookie on the example.

About

Scripts for crawling the web

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages