Skip to content

Instantly share code, notes, and snippets.

View profxx's full-sized avatar

Alexandre Pimentel profxx

View GitHub Profile
import scrapy
class MlSpider(scrapy.Spider):
name = 'ml'
start_urls = ['https://www.mercadolivre.com.br/ofertas?page=1']
def parse(self, response, **kwargs):
for i in response.xpath('//li[@class="promotion-item"]'):
import scrapy
class MlSpider(scrapy.Spider):
name = 'ml'
start_urls = ['https://www.mercadolivre.com.br/ofertas?page=1']
def parse(self, response, **kwargs):
for i in response.xpath('//li[@class="promotion-item"]'):