Skip to content

Instantly share code, notes, and snippets.

View ranafge's full-sized avatar
🏠
Working from home

Samsul Islam ranafge

🏠
Working from home
View GitHub Profile
@ranafge
ranafge / scrapy shell
Last active December 30, 2018 04:52 — forked from serhii73/scrapy shell
scrapy shell and user-agent
from scrapy import Request
url = 'http://www.example.com'
req = Request(url, headers={"USER-AGENT" : "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36 OPR/45.0.2552.888"})
fetch(req)