julien-c / topsites Goto Github PK
View Code? Open in Web Editor NEWAlexa Top Sites API
Alexa Top Sites API
------------------------------------------------------------------------- - PHP Sample for Alexa Top Sites - ------------------------------------------------------------------------- This sample will make a request to the Alexa Top Sites web service using your Access Key ID and Secret Access Key. Tested with PHP 5.3.2. Steps: 1. Sign up for an Amazon Web Services account at http://aws.amazon.com (Note that you must have a valid credit card) 2. Get your Access Key ID and Secret Access Key 3. Sign up for Alexa Top Sites at http://aws.amazon.com/alexatopsites 4. Uncompress the zip file into a working directory 5. Run php topsites.php ACCESS_KEY_ID SECRET_ACCESS_KEY [COUNTRY_CODE] Country code is optional. If you are getting "Not Authorized" messages, you probably have one of the following problems: 1. Your access key or secret key were not entered properly. Please re-check that they are correct. 2. You did not sign up for Alexa Top Sites at http://aws.amazon.com/alexatopsites (This step is separate from signing up for Amazon Web Services.) 3. Your credit card was not valid. If you are getting "Request Expired" messages, please check that the date and time are properly set on your computer.
Tried running this code via cmd, got the below error -
Fatal error: Uncaught exception 'Exception' with message 'String could not be parsed as XML' in C:\Users\Vineet\Desktop\topsites-master\topsites-master\topsites.class.php on line 88
Exception: String could not be parsed as XML in C:\Users\Vineet\Desktop\topsites-master\topsites-master\topsites.class.php on line 88
Call Stack:
0.0003 231872 1. {main}() C:\Users\Vineet\Desktop\topsites-master\topsites-master\topsites.php:0
0.0010 262592 2. TopSites->getTopSites() C:\Users\Vineet\Desktop\topsites-master\topsites-master\topsites.php:17
4.0118 264168 3. TopSites::parseResponse() C:\Users\Vineet\Desktop\topsites-master\topsites-master\topsites.class.php:30
4.0118 264592 4. SimpleXMLElement->__construct() C:\Users\Vineet\Desktop\topsites-master\topsites-master\topsites.class.php:88
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.