Awesome! That's great news, happy to help :)) On Tuesday, February 9, 2016 at 12:57:43 PM UTC, Sergey Zhemzhitsky wrote: > > Hi Dimitris, > > Thanks to you, we've already patched locally installed scrapyd. New > version support works perfectly. > > On Monday, February 8, 2016 at 11:35:12 PM UTC+3, Dimitris Kouzis - Loukas > wrote: >> >> Hey Sergey, no worries... follow-up on that PR... it will likely be in >> the next version of Scrapyd, but with little effort, you should will be >> able to patch your existing version and get this feature working right now. >> >> On Saturday, February 6, 2016 at 12:10:12 PM UTC, Sergey Zhemzhitsky >> wrote: >>> >>> Hi Demitris, >>> >>> Thanks a lot! Still no luck - scrapyd's rest api does not handle >>> _version parameter or I'm missing something. >>> >>> curl ' >>> http://localhost:6800/listspiders.json?project=myproject&_version=1_0_0' >>> always return spiders from the latest version. >>> >>> >>> On Wednesday, February 3, 2016 at 5:23:42 AM UTC+3, Dimitris Kouzis - >>> Loukas wrote: >>>> >>>> Check-out this Pull Request on a way to do this: >>>> https://github.com/scrapy/scrapyd/pull/123 >>>> >>>> On Sunday, January 24, 2016 at 7:52:03 PM UTC, Sergey Zhemzhitsky wrote: >>>>> >>>>> Hi there, >>>>> >>>>> I cannot figure out what is the purpose of "version" parameter in >>>>> "addversion.json" call to scrapyd. >>>>> Although it is possible to add and delete versions with >>>>> "addversion.json" and "delversion.json" it is not possible to specify a >>>>> version when scheduling a crawling with "schedule.json" that seems to >>>>> be pretty natural. >>>>> >>>>> If, let's say, I would like to create two versions "1.0.0" and "2.0.0" >>>>> both of which contain spider with the same name "MySpider" and then to >>>>> schedule this spider, spider from what egg is going to be scheduled? >>>>> >>>>> $ curl http://localhost:6800/addversion.json project=my_spiders -F >>>>> version=1.0.0 -F egg=@my_spiders-1.0.0-py2.7.egg >>>>> $ curl http://localhost:6800/addversion.json project=my_spiders -F >>>>> version=2.0.0 -F egg=@my_spiders-1.0.0-py2.7.egg >>>>> >>>>> $ curl http://localhost:6800/schedule.json -d project=my_spiders -d >>>>> spider=MySpider >>>>> >>>>> >>>>> Maybe I'm missing something? Could you please help? >>>>> >>>>> Kind regards, >>>>> Sergey >>>>> >>>>
-- You received this message because you are subscribed to the Google Groups "scrapy-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/scrapy-users. For more options, visit https://groups.google.com/d/optout.
