import scrapy
import re
class DolarSpider(scrapy.Spider):
    name = 'dolar_hoje'
    start_urls = ['https://www.melhorcambio.com/dolar-hoje']
    custom_settings = {
        'USER_AGENT': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari'
    }
    def parse(self, response):
        html = response.text
        preco = re.findall(
            r'<input type="hidden" value="(.*)" id="taxa-comercial">', html
        )[0]
        self.log(preco)

485ac586793d4706a51e2de46281e32153ca1c79
<mask token>


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

<mask token>


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

    def parse(self, response):
        html = response.text
        preco = re.findall(
            '<input type="hidden" value="(.*)" id="taxa-comercial">', html)[0]
        self.log(preco)

<mask token>


class DolarSpider(scrapy.Spider):
    name = 'dolar_hoje'
    start_urls = ['https://www.melhorcambio.com/dolar-hoje']
    custom_settings = {'USER_AGENT':
        'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari'
        }

    def parse(self, response):
        html = response.text
        preco = re.findall(
            '<input type="hidden" value="(.*)" id="taxa-comercial">', html)[0]
        self.log(preco)

import scrapy
import re


class DolarSpider(scrapy.Spider):
    name = 'dolar_hoje'
    start_urls = ['https://www.melhorcambio.com/dolar-hoje']
    custom_settings = {'USER_AGENT':
        'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari'
        }

    def parse(self, response):
        html = response.text
        preco = re.findall(
            '<input type="hidden" value="(.*)" id="taxa-comercial">', html)[0]
        self.log(preco)

import scrapy
import re
class DolarSpider(scrapy.Spider):
    name = 'dolar_hoje'
    start_urls = ['https://www.melhorcambio.com/dolar-hoje']
    custom_settings = {
        'USER_AGENT': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari'
    }
    def parse(self, response):
        html = response.text
        preco = re.findall(
            r'<input type="hidden" value="(.*)" id="taxa-comercial">', html
        )[0]
        self.log(preco)
