Created
October 21, 2016 13:43
-
-
Save manashmandal/e55d9d1ce7315a54900edb412d740fe7 to your computer and use it in GitHub Desktop.
Scrapy in jupyter notebook
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
#http://stackoverflow.com/questions/26177620/how-to-execute-scrapy-shell-url-with-notebook | |
import requests | |
from scrapy.http import TextResponse | |
r = requests.get('http://stackoverflow.com/') | |
response = TextResponse(r.url, body=r.text, encoding='utf-8') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment