import scrapy


class ThzSpider(scrapy.Spider):
    name = "thzride"
    start_urls = [
        'http://thz.la/forum-220-1.html',
    ]

    def parse(self, response):

        for new in response.css('th.new'):
            yield {
                'text': new.css('a.xst::text').extract_first(),
                'href': new.css('a.xst::attr("href")').extract_first(),
            }

        for common in response.css('th.common'):
            yield {
                'text': common.css('a.xst::text').extract_first(),
                'href': common.css('a.xst::attr("href")').extract_first(),
            }

        next_page = response.css('a.nxt::attr("href")').extract_first()
        if next_page is not None:
            yield response.follow(next_page, self.parse)

@@ -312,16 +312,35 @@
  'href':
+ 'http://thz.la/' +
  new.css
@@ -554,16 +554,35 @@
  'href':
+ 'http://thz.la/' +
  common.

Add Link Prefix