Fetching latest spider data with the file extension included

Posted almost 7 years ago by petetartanshades

Post a topic
  • Topic is Locked
Un Answered
p
petetartanshades

With reference to this topic:


https://support.scrapinghub.com/support/solutions/articles/22000200409-fetching-latest-spider-data


https://app.scrapinghub.com/api/items.csv? project=PROJECTNUMBER&spider=SPIDERNAME&include_headers=1&fields=FIELDNAME1,FIELDNAME2&apikey=APIKEY


When I add the relevant details to the above URL the file downloads the latest crawl data correctly, however it doesn't include the .csv file extension. It downloads as an extensionless "1"


Can you please tell me if it's possible to download the file from the URL with the extension included?


Much apprecaited,


Peter.

0 Votes


3 Comments

Sorted by
p

petetartanshades posted almost 7 years ago

Hi nestor,


Apologies, there was a space in my URL, rookie mistake.


Please delete this thread admins. 


Thank you.

0 Votes

nestor

nestor posted almost 7 years ago Admin

Are you using the URL on a browser? If so, which?

0 Votes

p

petetartanshades posted almost 7 years ago

https://storage.scrapinghub.com/items/286094/?format=csv&apikey=b3bfcd806b334fb98eb022&include_headers=1&fields=one,two


This seems to download okay but it's the whole project, not the latest crawl data.

0 Votes