-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
https://github.com/edonyM/edonyM.github.io/issues/49
import scrapy
class OSCSpider(scrapy.Spider):
name = "OSC"
allowd_domains = ["www.oschina.net"]
start_url = ['http://www.oschina.net/news/industry']
def parse(self, response):
self.log("fet the OSC: " + response.url)
for item in response.css('div.main-info box-aw'):
url = item.css('a::attr(href)').extract_first()
yield urlReactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels