Advertisement
Guest User

Untitled

a guest
Jun 3rd, 2016
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.35 KB | None | 0 0
  1. import scrapy
  2.  
  3. class crawlSpider( scrapy.Spider ):
  4.     name = "crawl"
  5.     allowed_domains = ["http://google.pl/"]
  6.     start_urls = (
  7.         'http://google.pl/',
  8.     )
  9.  
  10.     def parse( self, response ):
  11.         url = "https://www.google.pl/#q=asd&start=10"
  12.         yield scrapy.Request( url, self.parse_2 )
  13.  
  14.     def parse_2( self, response ):
  15.         print "asd"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement