IMPORTXML- Could not fetch URL - specific domain - google-sheets

I'm trying to check a particular parameter on a page using importxml but I keep getting "Could not fetch url". I'm trying to check if the casino is Closed or restricted.
Heres what I'm using.
=importxml("https://www.askgamblers.com/online-casinos/reviews/winning-casino","/html/body/div[4]/div[1]/div/span")
And
=IMPORTXML("https://www.askgamblers.com/online-casinos/reviews/chipstars-casino","//*[#id='casino-review__new']/div[1]/div/span")
This used to work in the past (about 2 years back), doesn't seem to work now.
I'm not sure how to get this to work.

Related

bloodhound not showing all data returned from remote call typeahead.js

I'm using typeahed.js and bloodhound.js (with an mvc wrapper) and my remote server call is retrieving data based on details typed into a textbox.
For example, I type 'Fr' and I get three companies that start with Fr. I've checked the serverside code (c#) and I get 3 results. I've used Fiddler and checked that the browser is receiving (3 Json records) yet the typeahead suggestion only shows 2 items.
The limit in bloodhound is set to 1000 and I've switched caching off. Is this a known issue with these js libraries ?
Its basically unusable since I'm not getting an accurate representation of my actual search. I'm using the latest versions (twitter.typeahead v 0.11.11 and the version of bloodhound that's packaged with typeahead). I've spent so much time trying to figure out whats wrong with this, but I've had no luck.
I really don't want to have to rewrite parts of my app to use a different autocomplete mechanism. Is there a fix for this ?

Foursquare KML feed shows ONLY recent posts

For years, I had been using my Foursquare KML url to populate a Google Map that I then placed on my website.
A few months ago, I noticed that the feed would not load check-ins in the feed for earlier events and instead only the recent check-ins. The result has been a near empty map that goes back only a few months rather than 4 years.
I've checked with support many times over the past 6-7 months and the response is always quite general. Nobody has actually looked at my account to see what the issue is.
And the last response was to come here and ask you all.
So that's my issue:
The Foursquare KML feed only will populate a map with recent check-ins.
I've refreshed the feed URLs on the foursuare.com/feeds page and tried with that new url
When I go into my Foursquare.com/user/history page on a desktop, all my check-ins are there and are populated on that map which uses Mapbox/OpenStreetMaps.
If anyone has any advice as to how to get this problem fixed, please let me know. And if someone knows of a work-around to instead get whatever feed Foursqure is using to populate Mapbox/OpenStreetMaps, that would work great too!
Thanks again!
Have you tried adding ?count=500 to your KML feed URL? By default it seems limited to the last 10.

twitter api 1.1 url count alternative

I've been using the old url api(v1) to get the count of a given url, lately I needed to get also the re-tweets and started searching about that.
this is the exact url I'm using right now:
http://urls.api.twitter.com/1/urls/count.json?url=http://google.com
As I viewed with some reading the v1 api is deprecated but at least it's still working.
I found some questions on the dev page of twitter:
https://dev.twitter.com/discussions/12643
those are a little old questions and have no specific solving to the problem. I mean, the most near solution was using the search api(search/tweets) which could be good but not a exactly replacement for the urls/count method.
Please note that Twitter's search service and, by extension, the
Search API is not meant to be an exhaustive source of Tweets. Not all
Tweets will be indexed or made available via the search interface.
also it has a limit for 100 results at maximum per 'page', even it throws the link to get the next set of objects, thats good but when the search reaches 1 million of results I'll need to get page over page to now how much tweets I got and having to do to much request to the api...
I sought some question over the dev page on twitter suggested using the stream api, I've tried using (statuses/filter) but that don't work very well given a URL as track param(which they said that is the keyword to track).
So, anyone who's been using the old urls/count has found a reliable alternative with the new apiv1.1, especiffically to get the tweets and re-tweets for a given url ?
The official suggestion by Twitter staff is that either the search/tweets endpoint (having just the last 7 days data) or the Streaming API be used (handling yourself the counters, making everything just too complicated for a d*mn counter).
As an extra warning, the old endpoint (http://urls.api.twitter.com/1/urls/count.json?url=YOUR_URL) will stop working on November 20th, and according to this blog post from Twitter there are no plans to replace it with anything in the short term and they are even removing the count from their own buttons.

Youtube Video Search API : Filter by tag broken?

I am using the following API call to pull all of the videos with <TAG> from <CHANNEL>:
http://gdata.youtube.com/feeds/api/users/<CHANNEL>/uploads/-/<TAG>/?v=2&alt=jsonc&start-index=1&max-results=50&orderby=published
But for some tag names the results are wrong, or even empty. For example
http://gdata.youtube.com/feeds/api/users/NintendoFR/uploads/-/n3ds/?v=2&alt=jsonc&start-index=1&max-results=50&orderby=published
only has 1 result, but I know that there are at least 20 videos with the tag "n3ds", on the other hand
http://gdata.youtube.com/feeds/api/users/NintendoFR/uploads/-/wiiu/?v=2&alt=jsonc&start-index=1&max-results=50&orderby=published
gives the expected 36 results. Any ideas? Or anyone with similar problems?
Have the same problem (search by tag no longer works).
The Youtube API team has history for making un-announced changes.
For example, a few month's back, the "video description" field was truncated
- without any announcement of the change
- without updating the doco to reflect the change
This looks like a similar change, i.e. tag search has been depreciated (switched off).
Workaround (for your videos) is to include the tag(s) in the first 150 chars or so of the video's description.
We have a similar problem. A few days or weeks ago, a piece of code that sends these requests stopped delivering results. After a bit of research, we found out that getting results is random:
On some occasions we get the right results
On some occasions we get no results.
The only difference we could find in both requests is that a parameter is missing from the requests. When requesting an answer in XML, in the feed node an item is missing:
<feed xmlns:media='http://search.yahoo.com/mrss/'></feed>
Although we do not know why this is, at least now you know that you are not the only one that has this problem.

Tweet counter button showing zero (Addthis plugin for blogspot) [duplicate]

This question already has answers here:
Dealing with < in tw:counturl addthis plugin
(2 answers)
Closed 3 years ago.
I have added a Addthis plugin for blogspot for social networking sharing. The tweet count button for some reason is showing zero always, though the link has been tweeted multiple times.
I have verified using http://cdn.api.twitter.com/1/urls/count.json?url=
My blog website is http://rohit-cricket.blogspot.in/2012/10/turning-twenty-three-and-counting.html
There is no point of pasting code here, as Addthis expands when the page is loaded. It can be seen using Inspect element of google chrome.
Please help
Twitter describes a couple possibilities as to why your count may not be incrementing:
To improve performance we cache the count before displaying it. The cache is updated frequently but on some occasions it may look like your count is not increasing while the cache is updated. In addition, the count only includes public Tweets meaning a Tweet from a protected account will not cause an increase.
Additionally, there is currently a requirement that your server support HTTP HEAD requests in order to update the count properly. An easy way to check this is to use the command-line curl program, passing the -I (capital i) flag. A successful request should have a HTTP 200 OK response
Source: https://dev.twitter.com/docs/tweet-button/faq#count-api-increment
Also, try updating the link to tweet:
<a class="addthis_button_tweet" tw:counturl="http://yoururltocount.com/">
Found answer here: http://www.addthis.com/forum/viewtopic.php?f=4&t=30188

Resources