微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

Feed SDK <strong>用法</strong> 下载和过滤 Feed 文件

程序名称:Feed SDK <strong>用法</strong>

授权协议: Apache 2.0

操作系统: 跨平台

开发语言: Python

Feed SDK <strong>用法</strong> 介绍

Feed SDK 是 eBay 开源的 Python 开发包,用于下载和过滤通过公共 Feed API 提供的大型项目 Feed 文件

用法

使用命令行选项

可以使用命令行调用 SDK 的所有功能

要查看可用选项和过滤器,请使用 ‘–help’

usage: FeedSDK [-h] [-dt DT] -c1 C1 [-scope {ALL_ACTIVE,NEWLY_LISTED}]
               [-mkt MKT] [-token TOKEN] [-env {SANDBox,PRODUCTION}]
               [-lf LF [LF ...]] [-sellerf SELLERF [SELLERF ...]]
               [-locf LOCF [LOCF ...]] [-pricelf PRICELF] [-priceuf PRICEUF]
               [-epidf EPIDF [EPIDF ...]] [-iepidf IEPIDF [IEPIDF ...]]
               [-gtinf GTINF [GTINF ...]] [-itemf ITEMF [ITEMF ...]]
               [-dl DOWNLOADLOCATION] [--filteronly] [-format FORMAT] [-qf QF]

Feed SDK CLI

optional arguments:
  -h, --help            show this help message and exit
  -dt DT                the date when Feed file was generated
  -c1 C1                the l1 category id of the Feed file
  -scope {ALL_ACTIVE,NEWLY_LISTED}
                        the Feed scope. Available scopes are ALL_ACTIVE or
                        NEWLY_LISTED
  -mkt MKT              the marketplace id for which Feed is being requested.
                        For example - EBAY_US
  -token TOKEN          the oauth token for the consumer. Omit the word
                        'Bearer'
  -env {SANDBox,PRODUCTION}
                        environment type. Supported Environments are SANDBox
                        and PRODUCTION
  -lf LF [LF ...]       list of leaf categories which are used to filter the
                        Feed
  -sellerf SELLERF [SELLERF ...]
                        list of seller names which are used to filter the Feed
  -locf LOCF [LOCF ...]
                        list of item locations which are used to filter the
                        Feed
  -pricelf PRICELF      lower limit of the price range for items in the Feed
  -priceuf PRICEUF      upper limit of the price range for items in the Feed
  -epidf EPIDF [EPIDF ...]
                        list of epids which are used to filter the Feed
  -iepidf IEPIDF [IEPIDF ...]
                        list of inferred epids which are used to filter the
                        Feed
  -gtinf GTINF [GTINF ...]
                        list of gtins which are used to filter the Feed
  -itemf ITEMF [ITEMF ...]
                        list of item IDs which are used to filter the Feed
  -dl DOWNLOADLOCATION, --downloadlocation DOWNLOADLOCATION
                        override for changing the directory where files are
                        downloaded
  --filteronly          filter the Feed file that already exists in the
                        default path or the path specified by -dl,
                        --downloadlocation option. If --filteronly option is
                        not specified, the Feed file will be downloaded again
  -format FORMAT        Feed and filter file format. Default is gzip
  -qf QF                any other query to filter the Feed file. See Python
                        dataframe query format

例如,使用命令行选项使用令牌下载和过滤 Feed 文件

python Feed_cli.py -c1 3252 -scope ALL_ACTIVE -mkt EBAY_DE -env PRODUCTION -qf "AvailabilityThreshold=10" -locf IT GB -dl DIR -token xxx

过滤 Feed 文件,不需要令牌

python Feed_cli.py --filteronly -c1 260 -pricelf 5 -priceuf 20 -dl FILE_PATH

Feed SDK <strong>用法</strong> 官网

https://github.com/eBay/FeedSDK-Python

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐