how do i use alexa's data.alexa.com url - web-services

i want to read the country of any website from Alexa's Data from XML
so i tried
http://data.alexa.com/data?cli=10&url=http://www.flipkart.com
but this just returns the following for all domains
This XML file does not appear to have any style information associated with it. The document tree is shown below.
<ALEXA VER="0.9" URL="alexa.com/" HOME="0" AID="=">
<RLS TITLE="Related Links" PREFIX="http://" more="0">
<RL HREF="www.alexa.com/blocker?tag=pfcp2YmYvjxYjfxUj=0000000000000&ref=data.alexa.com/" TITLE="Please click here to continue using Alexa"/>
</RLS>
</ALEXA>
is there another way to axes alexa data

You need to sign up with Amazon Web Information Service at https://aws.amazon.com/awis/

Related

How can I Upload a feed via postman to Amazon Sp-API?

I've spent weeks, hours daily trying to figure out how to upload a feed (POST_FLAT_FILE_PRICEANDQUANTITYONLY_UPDATE_DATA) to Amazon sp API.
Before even attempting to do it in PHP, I want to 1st make it work on Postman.
I've been successful getting a FEED ID and a FEED URL (I Used content type: "text/xml; charset=UTF-8" since it's a flat file (CSV not XML).
Although, If I can make it work easier via XML I Would gladly switch. I just want to be able to update my inventory and price in same feed.
Are there are links to a postman configuration to upload to a feed?
I think I'm supposed to use "PUT" and upload to the Feed url but I can't find an already complete postman config for it.
Any help would be soooooooo appreciated.
Thank you so much!

Icecast - list clients on web directory

I try to show list logged listeners to stream outside admin area. Without success.
I coppied listclients.xsl from /admin directory to /web.
I created sym link in /usr/share/icecast2/web. I can open: radio_adres.com:8000/listclients.xsl?mount=/mount_name.ogg and its look this same as page: radio_adres.com:8000/admin/listclients.xsl?mount=/mount_name.ogg except one. There is no listeners list.
<xsl:value-of select="#mount"/ >shows stream name, and <xsl:value-of select="#listeners" /> number of logged, but loop which is in original file to show listeners <xsl:for-each select="listener"></xsl:for-each> not working.
I have 3 log level but there is no error or even warning. Nothing. Maybe icecast don't allow show client list without login?
This will not work as /admin has much further data access and actually each XSL transform will only work correctly for certain endpoints within /admin. Outside of that only the data from /admin/stats (XML) is available and it doesn't include sensitive data such as all client details. It is a bit more than is generally available in status.xsl by default though.
If you want to expose this information you could pass the request through a reverse proxy or process it explicitly inside a second web-server with a script like PHP, python, etc.
Please note that if you want information for a specific mount-point, then you can also use the source credentials of that mount to access certain endpoints within /admin. For details see documentation linked below.
Please also see:
https://icecast.org/docs/icecast-2.4.1/server-stats.html
https://icecast.org/docs/icecast-2.4.1/admin-interface.html

How can I return hyperlinked text in a Lexresponse?

So I am building a lex chatbot and I am trying to return a response with hyperlinked text. I have the chatbot sitting on a front end but I cant seem to find a way to return responses with hyperlinks. Heres what I have so far
https://imgur.com/N6Bp2fX
https://imgur.com/zbnUsrH
Now Ive read that the responses from lex are formatted to where the chatbot is sitting. For example, in the chatbot test window on the Amazon site, returning hyperlinks is impossible, but skype automatically hyperlinks URLs. But I have mine sitting on a browser but I still cant get a hyperlinked response in the bot.
Would love if anyone could help me out! Thanks in advance!
The test console window of Lex does not support html rendering. You can instead deploy your chatbot to a channel like facebook or slack, and it will be rendered correctly.
You can use the custom markup option to send a response in the following json format to format it by your client.
{
"text": "Check out the following link",
"type":"hyperlink",
"links":[{
"linkText":"Google",
"url":"https://google.com"
}]
}
Lex can return any response that you want, but it's the responsibility of chat client to parse that response and show accordingly.
So you need to write your logic to parse hyperlink and show them.
In your case you can send response from Lex like : Please visit [link]www.google.com[\link].
Then you can write your logic to show the text in anchor tag <a> in your chat window so that it is parsed as hyperlink.
Hope it helps.

GET request 200 OK but 'failed to load response data' for links

I made a personal website (http://www.soyoungpark.online) using domain bought from GoDaddy and hosted on AWS s3. I set up everything and thought things were working until I put a simple link to my linkedin profile. When I check the network panel, I see that status code is 200 OK but for the response..there is nothing. The code itself doesn't seem to be problematic; it is simple a with href of the desired link. So I am guessing something could be wrong with my AWS s3 settings? Anyone with similar experience?
It's likely that these services include a header option called "X-Frame" that for security prevents them from being loaded within another site:
The X-Frame-Options HTTP response header can be used to indicate whether or not a browser should be allowed to render a page in a <frame>, <iframe> or <object> . Sites can use this to avoid clickjacking attacks, by ensuring that their content is not embedded into other sites. Source: X-Frame-Options
This does look to be the case when attempting to view Linkedin per your example:
Refused to display 'https://www.linkedin.com/in/exampleuser' in a frame because it set 'X-Frame-Options' to 'sameorigin'.
That said, applying a target Attribute to each to open in a new tab or window should allow these outside services to be navigated to.
e.g:
<a href="https://www.linkedin.com/in/exampleuser" target="_blank">

What do I need to write to be able to communicate with a web service?

I've been tasked (I'm not a web developer) with creating something (a web service "client") that will connect to a web service, retrieve a list of files (url's) and then download them (HTTP Post) for further processing. I guess anything like a command line app that I can schedule to run daily will do (but I'm open to suggestions).
I have documentation for the web service, it uses SOAP 1.1 which I am somewhat familiar with (used it in a few web pages, but that was classic asp). They are even offering a WSDL to download in order to generate proxy classes, or you can create your own.
Below is the description of the objects that the WSDL creates:
There are six software entities that you will need to implement in your web service client. If your development environment automatically generates these from the WSDL, they will have the following names and purposes:
DownloadSvc
Response
ResponseCodeEnum
UserType
CertificationEnum
FileFormat.
DownloadSvc Class – This is the central object you will use. It implements the majority of the behavior needed to login to the service, to check the availability of a download and to obtain the download URL. For example, it has a Login and a GetURLS method. This class supports both full and change list (“delta”) downloads.
Response Class – Most methods of the DownloadSvc return this Response object. The fields in Response are as follows:
The Response.code field always describes the success or failure of a method call.
The Response.value field sometimes contains additional information.The remaining four items are simple enumerations that define the allowable values in the fields passed from or to the service.
ResponseCodeEnum – Describes the possible values of the Response.code field. For example, it may return a code of LoginOK or DownloadOK for successful calls, or an error-specific code for failures. You can see the specific code values listed in the sample SOAP responses in the SOAP Appendix.
UserType – Only used with the Login method. It identifies which password is being used to login: your Representative password or your Downloader password.
CertificationEnum – An enumeration that you use to certify your agreement with the FTC’s conditions for downloading these phone number files as specified on the download full or download change page.
FileFormat – An enumeration that lets you select a flat text file or an XML file format.
Here's my question: where do I start in Visual Studio? What type of project do I need? Thank you!