Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import scrapy
- class crawlSpider( scrapy.Spider ):
- name = "crawl"
- allowed_domains = ["http://google.pl/"]
- start_urls = (
- 'http://google.pl/',
- )
- def parse( self, response ):
- url = "https://www.google.pl/#q=asd&start=10"
- yield scrapy.Request( url, self.parse_2 )
- def parse_2( self, response ):
- print "asd"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement