login
Forgot?
Login with Facebook

Don't have an account? Register one now!

Amazon Associates Automatic Reports

Bids 
9
Avg Bid
$195 USD
CLOSED
  • Project ID:

    466383
  • Project Type:

    Fixed
  • Budget:

    $30-$250 USD

Project Description:

I need someone to write a script in ASP.NET that will log into amazon associates and download the daily reports as xml files

Skills required:

.NET

Project posted by:

sim0n20 United Kingdom
(0 Reviews)

Last seen:

Public Clarification Board

1 messages

  • sim0n20

    Please note, there is no api for this procedure, it must be done using a series of httprequests, an out of date example in perl can be seen below

    #!/usr/bin/perl -w
    # get_earnings_report.pl
    #
    # Logs into Amazon, downloads earning report,
    # and writes an HTML version for your site.
    # Usage: perl get_earnings_report.pl
    use strict;
    use URI::Escape;
    use HTTP::Cookies;
    use LWP::UserAgent;
    use Net::SSLeay;

    # Set your Associates account info.
    my $email = 'emailaddr';
    my $pass = 'mypasswordhere';
    my $aftag = 'amazonid';

    # Create a user agent object
    # and fake the agent string.
    my $ua = LWP::UserAgent->new;
    $ua->agent("(compatible; MSIE 4.01; MSN 2.5; AOL 4.0; Windows 98)");
    $ua->cookie_jar({}); # in-memory cookie jar.

    # Request earning reports, logging in as one pass.

    my $rpturl = "https://associates.amazon.com/gp/associates/".
    "network/reports/main.html";

    my $rptreq = HTTP::Request->new(POST => $rpturl);
    my $rptdata = "report-type=shipments-by-item". # get individual item
    +s
    "&date-selection=qtd". # all earnings this q
    +uarter
    "&login_id=".uri_escape($email). # our email address.
    "&login_password=".uri_escape($pass). # and password.
    "&submit.download=Download my report". # get downloadble
    +.
    "&enable-login-post=true"; # log in and post at once.
    $rptreq->content_type('application/x-www-form-urlencoded');
    $rptreq->content($rptdata); my $report = $ua->request($rptreq);

    print $report->content;

    # Set the report to array.
    my @lines = split(/\n/, $report->content);

    # Get the time period.
    my @fromdate = split(/\t/, $lines[1]);
    my @todate = split(/\t/, $lines[2]);
    my $from = $fromdate[1];
    my $to = $todate[1];

    # Print header...
    print "<html><body>";
    print "<h2>Items Purchased Through This Site</h2>";
    print "from $from to $to <br><br>\n";
    print "<ul>";

    # Loop through the rest of the report.
    splice(@lines,0,5);
    foreach my $line (@lines) {
    my @fields = split(/\t/, $line);
    my $title = $fields[1];
    my $asin = $fields[2];
    my $edition = $fields[4];
    my $items = $fields[8];

    # Format items as HTML for display.
    print "<li><a href=\"http://www.amazon.com/o/ASIN/$asin/ref=nosim/
    +".
    "$aftag\">$title</a> ($items) $edition <br>\n";
    }
    print "</ul></body></html>";



    And this is my error:
    C:\Perl>perl get_earnings_report.pl
    Can't locate auto/Net/SSLeay/autosplit.ix in @INC (@INC contains: C:/P
    +erl/lib C:
    /Perl/site/lib .) at C:/Perl/lib/AutoLoader.pm line 160.
    at C:/Perl/lib/Net/SSLeay.pm line 61
    Can't locate loadable object for module Net::SSLeay in @INC (@INC cont
    +ains: C:/P
    erl/lib C:/Perl/site/lib .) at get_earnings_report.pl line 11
    Compilation failed in require at get_earnings_report.pl line 11.
    BEGIN failed--compilation aborted at get_earnings_report.pl line 11.

    over 2 years ago


If you are the project creator or one of the bidders, please Log In for more options.


Awarded Bids

HeoQue Norway
Guru.jpg
HeoQue
Norway From Norway     Offline
  General Freelancer Orientation (85%, 95th percentile)
  Foundation EUFreelance.com Member
 Accepted
$235 in 4 days 
0
over 2 years ago
4.8

6.7

50 Reviews
74% Completion Rate
kindly check PM

All Bids ()

creatorul Romania
logo.jpg
creatorul
Romania From Romania     Gold Member     Offline
  Foundation EUFreelance.com Member
$250 in 2 days 
0
over 2 years ago
5.0

7.4

105 Reviews
82% Completion Rate
Professional solutions
rajtuhin1 India
rajtuhin1
India From India     Offline
  US English Level 1 (95%, 71st percentile)
  Freelancer Orientation (90%, 100th percentile)
  General Freelancer Orientation (90%, 98th percentile)
$200 in 0 days 
0
over 2 years ago
5.0

7.1

140 Reviews
83% Completion Rate
I am experienced with Amazon. lets discuss in pmb, and start the project. Thanks and Regards : TUHIN
XpertzDotNet India
Logo1.jpg
XpertzDotNet
India From India     Offline
  Foundation Freelancer.co.uk Member
  US English Level 1 (90%, 45th percentile)
  Freelancer Orientation (95%, 100th percentile)
  HTML Level 1 (88%, 96th percentile)
  JavaScript Level 1 (83%, 79th percentile)
  ASP Level 1 (73%, 90th percentile)
  SQL Level 1 (85%, 61st percentile)
  C# 1 (78%, 93rd percentile)
  WordPress (83%, 92nd percentile)
  Employer Orientation (75%, 97th percentile)
  General Freelancer Orientation (90%, 98th percentile)
$200 in 15 days 
0
over 2 years ago
5.0

5.6

25 Reviews
74% Completion Rate
I`ll do it..
librawebsol India
logo.jpg
librawebsol
India From India     Offline
  General Freelancer Orientation (80%, 90th percentile)
$210 in 4 days 
0
over 2 years ago
5.0

2.4

1 Review
58% Completion Rate
Hello, Please check Pmb for details. Regards, Punit
AbhishekKumarRai India
logo1.gif
AbhishekKumarRai
India From India     Offline
$160 in 5 days 
0
over 2 years ago
0.0

0.0

0 Reviews
14% Completion Rate
Hi, Please check my PMB. Thanks Abhishek
velldone Ukraine
Orden.gif
velldone
Ukraine From Ukraine     Offline
  Foundation EUFreelance.com Member
$100 in 5 days 
0
over 2 years ago
0.0

1.0

0 Reviews
100% Completion Rate
I need a positive review at first now that is why I'll do it for you not expensive.
SVA Ukraine
SVA
Ukraine From Ukraine     Offline
$200 in 6 days 
0
over 2 years ago
I can do this work.
onlysonu1 India
onlysonu1
India From India     Offline
  Foundation Freelancer.co.uk Member
  Foundation EUFreelance.com Member
$199 in 8 days 
0
over 2 years ago
We will do that for you with Quality.