Socket
Socket
Sign inDemoInstall

github.com/carlaiau/ebay-api-retrieval

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/carlaiau/ebay-api-retrieval


Version published
Created
Source

Ebay Play

Basic scraper that takes a tsv file of titles and categories as input. The scraper queries the Ebay API for each product title. Upon recieveing a response, we concatenate the product title and category coming out of the API and compare that to the title and category from the TSV file. If these match, then we conclude that the product is correctly identified.

Prerequisities

Go Ebay Production API ID

Usage

go get github.com/valyala/tsvreader
cd ebay-api-retrieval
go build .
./ebay-api-retrieval

CLI arguments

app_id required

Usage of ./ebay-play:
  -a 
      String: Application ID from Ebay
  -i
      String: Path to TSV Input File (default "data/in.tsv")
  -o
      String: Path to XML Output File (default "out/dump.xml")
  -r
      Boolean, whether to remove Header from Input (default true)

To Do

Better management of fails. Retries. Add Channels, multi thread scraping

FAQs

Package last updated on 22 May 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc