# -*- coding: utf-8 -*-
from scrapy import Spider
from scrapy.http import Request
from time import sleep

class ExplorerSpider(Spider):
    name = 'explorerKopia'
    allowed_domains = ['walletexplorer.com']
    start_urls = ['https://www.walletexplorer.com/address/1Nh5zQoztRQQRTwAXnvUFU4UakxhtMhNaE']

    def parse(self, response):
        table= response.xpath('//table')
        trs= table.xpath('.//tr')[1:]
        for tr in trs:
            action_date= tr.xpath(u'.//td[1]/text()').extract_first()
            rec_sent= tr.xpath(u'.//td[2]/text()').extract_first()
            balance= tr.xpath(u'.//td[3]/text()').extract_first()
            transaction= tr.xpath(u'.//td[4]/a/text()').extract_first()
            yield{
                'action_date':action_date.strip(),
                'rec_sent':rec_sent.strip(),
                'balance': balance.strip(),
                'transaction':transaction.strip()            
            }
        next_page= response.xpath(u'//a[text()="Next…"]/@href').extract_first()
        last_page = response.xpath(u'//a[text()="Last"]/@href').extract_first()
        absolut_next_page = response.urljoin(next_page)
        absolut_last_page = response.urljoin(last_page)
        
        if absolut_next_page:
            sleep(3.0)
            yield Request(absolut_next_page, callback= self.parse)
        
        yield Request(absolut_last_page, callback= self.parse)
96d8abf4b8070203e870cdd9497caf1a3914762e
<mask token>

<mask token>


class ExplorerSpider(Spider):
    <mask token>
    <mask token>
    <mask token>

    def parse(self, response):
        table = response.xpath('//table')
        trs = table.xpath('.//tr')[1:]
        for tr in trs:
            action_date = tr.xpath(u'.//td[1]/text()').extract_first()
            rec_sent = tr.xpath(u'.//td[2]/text()').extract_first()
            balance = tr.xpath(u'.//td[3]/text()').extract_first()
            transaction = tr.xpath(u'.//td[4]/a/text()').extract_first()
            yield {'action_date': action_date.strip(), 'rec_sent': rec_sent
                .strip(), 'balance': balance.strip(), 'transaction':
                transaction.strip()}
        next_page = response.xpath(u'//a[text()="Next…"]/@href').extract_first(
            )
        last_page = response.xpath(u'//a[text()="Last"]/@href').extract_first()
        absolut_next_page = response.urljoin(next_page)
        absolut_last_page = response.urljoin(last_page)
        if absolut_next_page:
            sleep(3.0)
            yield Request(absolut_next_page, callback=self.parse)
        yield Request(absolut_last_page, callback=self.parse)

<mask token>


class ExplorerSpider(Spider):
    name = 'explorerKopia'
    allowed_domains = ['walletexplorer.com']
    start_urls = [
        'https://www.walletexplorer.com/address/1Nh5zQoztRQQRTwAXnvUFU4UakxhtMhNaE'
        ]

    def parse(self, response):
        table = response.xpath('//table')
        trs = table.xpath('.//tr')[1:]
        for tr in trs:
            action_date = tr.xpath(u'.//td[1]/text()').extract_first()
            rec_sent = tr.xpath(u'.//td[2]/text()').extract_first()
            balance = tr.xpath(u'.//td[3]/text()').extract_first()
            transaction = tr.xpath(u'.//td[4]/a/text()').extract_first()
            yield {'action_date': action_date.strip(), 'rec_sent': rec_sent
                .strip(), 'balance': balance.strip(), 'transaction':
                transaction.strip()}
        next_page = response.xpath(u'//a[text()="Next…"]/@href').extract_first(
            )
        last_page = response.xpath(u'//a[text()="Last"]/@href').extract_first()
        absolut_next_page = response.urljoin(next_page)
        absolut_last_page = response.urljoin(last_page)
        if absolut_next_page:
            sleep(3.0)
            yield Request(absolut_next_page, callback=self.parse)
        yield Request(absolut_last_page, callback=self.parse)

from scrapy import Spider
from scrapy.http import Request
from time import sleep


class ExplorerSpider(Spider):
    name = 'explorerKopia'
    allowed_domains = ['walletexplorer.com']
    start_urls = [
        'https://www.walletexplorer.com/address/1Nh5zQoztRQQRTwAXnvUFU4UakxhtMhNaE'
        ]

    def parse(self, response):
        table = response.xpath('//table')
        trs = table.xpath('.//tr')[1:]
        for tr in trs:
            action_date = tr.xpath(u'.//td[1]/text()').extract_first()
            rec_sent = tr.xpath(u'.//td[2]/text()').extract_first()
            balance = tr.xpath(u'.//td[3]/text()').extract_first()
            transaction = tr.xpath(u'.//td[4]/a/text()').extract_first()
            yield {'action_date': action_date.strip(), 'rec_sent': rec_sent
                .strip(), 'balance': balance.strip(), 'transaction':
                transaction.strip()}
        next_page = response.xpath(u'//a[text()="Next…"]/@href').extract_first(
            )
        last_page = response.xpath(u'//a[text()="Last"]/@href').extract_first()
        absolut_next_page = response.urljoin(next_page)
        absolut_last_page = response.urljoin(last_page)
        if absolut_next_page:
            sleep(3.0)
            yield Request(absolut_next_page, callback=self.parse)
        yield Request(absolut_last_page, callback=self.parse)

# -*- coding: utf-8 -*-
from scrapy import Spider
from scrapy.http import Request
from time import sleep

class ExplorerSpider(Spider):
    name = 'explorerKopia'
    allowed_domains = ['walletexplorer.com']
    start_urls = ['https://www.walletexplorer.com/address/1Nh5zQoztRQQRTwAXnvUFU4UakxhtMhNaE']

    def parse(self, response):
        table= response.xpath('//table')
        trs= table.xpath('.//tr')[1:]
        for tr in trs:
            action_date= tr.xpath(u'.//td[1]/text()').extract_first()
            rec_sent= tr.xpath(u'.//td[2]/text()').extract_first()
            balance= tr.xpath(u'.//td[3]/text()').extract_first()
            transaction= tr.xpath(u'.//td[4]/a/text()').extract_first()
            yield{
                'action_date':action_date.strip(),
                'rec_sent':rec_sent.strip(),
                'balance': balance.strip(),
                'transaction':transaction.strip()            
            }
        next_page= response.xpath(u'//a[text()="Next…"]/@href').extract_first()
        last_page = response.xpath(u'//a[text()="Last"]/@href').extract_first()
        absolut_next_page = response.urljoin(next_page)
        absolut_last_page = response.urljoin(last_page)
        
        if absolut_next_page:
            sleep(3.0)
            yield Request(absolut_next_page, callback= self.parse)
        
        yield Request(absolut_last_page, callback= self.parse)