Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # -*- coding: utf-8 -*-
- import scrapy
- class AutocodesSpider(scrapy.Spider):
- name = "autocodes"
- allowed_domains = ["autocodes.com"]
- start_urls = (
- 'http://www.autocodes.com/',
- )
- def parse(self, response):
- for link in response.selector.xpath('//table[1]//a/@href').extract():
- yield scrapy.Request(link, self.test)
- # print(response.selector.xpath('//table[1]//a'))
- def test(self, response):
- print('here')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement