Python Forum

Full Version: Python Scrapy ebay API
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi everyone....im wondering if somebody know how to connect the api from the ebay into scrapy to get calls,

i did this small code to make sure if the ebay work's without api, but i was wrong..., i did try to install ebaysdk but when im importing the api im getting error "no module names "eabysdk", that will be great if someone can share with me his own code:D, thank you very much guys!

This is just a test without API:

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


class EbaybotSpider(scrapy.Spider):
    name = 'EbayBot'
    start_urls = ['https://tinyurl.com/y89hzmxh']

    def parse(self, response):
        for content in response.css('tr.bot'):
            scraped_item = {
                'Title' : content.response('td:nth-child(2)').extract(),
                'Price' : content.response('td:nth-child(3)').extract(),
            }
            yield scraped_item