开发者

Using cURL for Amazon Associates reports... possible?

开发者 https://www.devze.com 2023-01-12 08:10 出处:网络
I\'ve got a couple of affiliate sites and would like to bring together the earnings reports from several Amazon sites into one place, for easier viewing and analysis.

I've got a couple of affiliate sites and would like to bring together the earnings reports from several Amazon sites into one place, for easier viewing and analysis.

I get the impression that cURL can be used to get external webpage content, which I could then scrape to obtain t开发者_StackOverflow中文版he necessary info. However, I've hit a wall in trying to log in to the Associates reports using cURL. Has anyone done this and do you have any advice?


I am working on an open-source project called PHP-OARA it's allows you to get your data from the different networks, it's part of the AffJet Project.

We have solved the problem with Amazon(it wasn't easy) and a PHP class is available to get your data from your associate account.If you like it you can even co-operate to do it better.

I hope it helps!


You can do this, but youll need to make use of cookies with curl: http://www.electrictoolbox.com/php-curl-cookies/ But id be willing to bet some cash that Amazon offers an API to get the data you want, although the last time i dealt with their web services it was a nightmare but proably because i was using the PHP SOAP extension and Amazon SOAP API.

0

精彩评论

暂无评论...
验证码 换一张
取 消