FeedSDK是eBay开源的Pytho开发包,用于下载和过滤通过公共FeedAPI提供的大型项目Feed文件。
用法使用命令行选项可以使用命令行调用SDK的所有功能。要查看可用选项和过滤器,请使用'--help'usage:FeedSDK[-h][-dtDT]-c1C1[-scope{ALL_ACTIVE,NEWLY_LISTED}][-mktMKT][-tokeTOKEN][-ev{SANDBOX,PRODUCTION}][-lfLF[LF...]][-sellerfSELLERF[SELLERF...]][-locfLOCF[LOCF...]][-pricelfPRICELF][-priceufPRICEUF][-epidfEPIDF[EPIDF...]][-iepidfIEPIDF[IEPIDF...]][-gtifGTINF[GTINF...]][-itemfITEMF[ITEMF...]][-dlDOWNLOADLOCATION][--filteroly][-formatFORMAT][-qfQF]FeedSDKCLIoptioalargumets:-h,--helpshowthishelpmessageadexit-dtDTthedatewhefeedfilewasgeerated-c1C1thel1categoryidofthefeedfile-scope{ALL_ACTIVE,NEWLY_LISTED}thefeedscope.AvailablescopesareALL_ACTIVEorNEWLY_LISTED-mktMKTthemarketplaceidforwhichfeedisbeigrequested.Forexample-EBAY_US-tokeTOKENtheoauthtokeforthecosumer.Omittheword'Bearer'-ev{SANDBOX,PRODUCTION}eviromettype.SupportedEvirometsareSANDBOXadPRODUCTION-lfLF[LF...]listofleafcategorieswhichareusedtofilterthefeed-sellerfSELLERF[SELLERF...]listofsellerameswhichareusedtofilterthefeed-locfLOCF[LOCF...]listofitemlocatioswhichareusedtofilterthefeed-pricelfPRICELFlowerlimitofthepricerageforitemsithefeed-priceufPRICEUFupperlimitofthepricerageforitemsithefeed-epidfEPIDF[EPIDF...]listofepidswhichareusedtofilterthefeed-iepidfIEPIDF[IEPIDF...]listofiferredepidswhichareusedtofilterthefeed-gtifGTINF[GTINF...]listofgtiswhichareusedtofilterthefeed-itemfITEMF[ITEMF...]listofitemIDswhichareusedtofilterthefeed-dlDOWNLOADLOCATION,--dowloadlocatioDOWNLOADLOCATIONoverrideforchagigthedirectorywherefilesaredowloaded--filterolyfilterthefeedfilethatalreadyexistsithedefaultpathorthepathspecifiedby-dl,--dowloadlocatiooptio.If--filterolyoptioisotspecified,thefeedfilewillbedowloadedagai-formatFORMATfeedadfilterfileformat.Defaultisgzip-qfQFayotherquerytofilterthefeedfile.SeePythodataframequeryformat例如,使用命令行选项使用令牌下载和过滤Feed文件pythofeed_cli.py-c13252-scopeALL_ACTIVE-mktEBAY_DE-evPRODUCTION-qf"AvailabilityThreshold=10"-locfITGB-dlDIR-tokexxx过滤Feed文件,不需要令牌pythofeed_cli.py--filteroly-c1260-pricelf5-priceuf20-dlFILE_PATH点击空白处退出提示
评论