# -*- coding: utf-8 -*-
import scrapy


class MyweixinSpider(scrapy.Spider):
    name = 'myweixin'
    allowed_domains = ['weixin.sogou.com/']
    start_urls = ['http://weixin.sogou.com/pcindex/pc/pc_0/1.html']

    def parse(self, response):
        # print(response.text)

        publicNumList = response.xpath('//div[@class="txt-box"]')
        for wx in publicNumList:
            # 微信公众号url
            wechatPublicNumurl = wx.xpath('.//div[@class="s-p"]/a/@href').extract()[0]
0e27a3ab654ae9bae3b10f24ee95c5386634e500
<mask token>


class MyweixinSpider(scrapy.Spider):
    <mask token>
    <mask token>
    <mask token>
    <mask token>

<mask token>


class MyweixinSpider(scrapy.Spider):
    <mask token>
    <mask token>
    <mask token>

    def parse(self, response):
        publicNumList = response.xpath('//div[@class="txt-box"]')
        for wx in publicNumList:
            wechatPublicNumurl = wx.xpath('.//div[@class="s-p"]/a/@href'
                ).extract()[0]

<mask token>


class MyweixinSpider(scrapy.Spider):
    name = 'myweixin'
    allowed_domains = ['weixin.sogou.com/']
    start_urls = ['http://weixin.sogou.com/pcindex/pc/pc_0/1.html']

    def parse(self, response):
        publicNumList = response.xpath('//div[@class="txt-box"]')
        for wx in publicNumList:
            wechatPublicNumurl = wx.xpath('.//div[@class="s-p"]/a/@href'
                ).extract()[0]

import scrapy


class MyweixinSpider(scrapy.Spider):
    name = 'myweixin'
    allowed_domains = ['weixin.sogou.com/']
    start_urls = ['http://weixin.sogou.com/pcindex/pc/pc_0/1.html']

    def parse(self, response):
        publicNumList = response.xpath('//div[@class="txt-box"]')
        for wx in publicNumList:
            wechatPublicNumurl = wx.xpath('.//div[@class="s-p"]/a/@href'
                ).extract()[0]

# -*- coding: utf-8 -*-
import scrapy


class MyweixinSpider(scrapy.Spider):
    name = 'myweixin'
    allowed_domains = ['weixin.sogou.com/']
    start_urls = ['http://weixin.sogou.com/pcindex/pc/pc_0/1.html']

    def parse(self, response):
        # print(response.text)

        publicNumList = response.xpath('//div[@class="txt-box"]')
        for wx in publicNumList:
            # 微信公众号url
            wechatPublicNumurl = wx.xpath('.//div[@class="s-p"]/a/@href').extract()[0]