Python Forum
Python Scrapy ebay API - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: Web Scraping & Web Development (https://python-forum.io/forum-13.html)
+--- Thread: Python Scrapy ebay API (/thread-14248.html)



Python Scrapy ebay API - Baggelhsk95 - Nov-21-2018

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