I hope you guys are best with your health and development works. I encountered a problem i.e. Twitter is not giving me maximum amounts of tweets, and I am not satisfied with premium. For sure, there will be my development fault. I’d diagnosed with a problem below, can you guys please tell me what will be the best possible solution for this?
Moreover can you please tell me the reason why I am not getting maximum amount of tweets WHEN NO FILTERS ARE APPLIED TO THE RULE?
SEARCH_TWEETS_URL = 'https://api.twitter.com/1.1/tweets/search/30day/development.json'
headers = {'Authorization': 'Bearer {}'.format(access_token)}
payload = {"query": (hash_one) -is:retweet}
response = requests.get(SEARCH_TWEETS_URL,params=payload,headers=headers).json()
whereas, hash_one is the user input of #tags or #TwitterHandles or Keywords.
I want to negate the retweets , in which pycharm IDE is giving me syntax error.
I’d also tried with hard-coded handles, #tags:
payload = {"query": "(#thePSLt20) -is:retweet"}
But its searches for “hash_one” and results me in empty string of tweets.
Its not working either way. :/
Please help :)
Related
I'm trying to reproduce manual search on NCBI with biopython but obviously something is not good in my code..
NCBI gives me that : "Microbacterium"[Organism] AND "latest refseq"[filter] AND (all[filter] NOT partial[filter])
i'm trying :
query = "Microbacterium[Organism] AND latest refseq[filter] AND (all[filter] NOT partial[filter])"
handle = Entrez.esearch(term=query, db="nuccore", retmax=600)
ids = Entrez.read(handle)["IdList"]
but ids is empty, i'm supposed to find 512 genomes that i would like to get after.
if someone has an idea where i did mistake?
and to add point to my question, does everyone know if we can get only genomes related to a published paper?
thanks a lot!
Currently, in my code, I am taking a list of stored Event ids and fetching them like this:
results = await Task.WhenAll(
criteria.Identifiers
.Skip(offset).Take(pageSize)
.Select(i => userEvents[i].Request(options).GetAsync())
.ToList());
This works fine, but it makes pageSize number of calls to the API, which seems less than ideal. Is there a way to bundle these identifiers into a single API call?
My question proved similar to another:
Getting multiple users/groups by objectids
The answer, there, suggests this feature might be coming, but isn't here, yet. If anyone knows more about the timeline, please add another answer or comment.
I am developing an app for ios and I'm am using the Google places api. When I make my request, I am getting a response, status reads "Ok", but every attribute is null. Interesting thing is that for different searches, I get a unique number of results, and the same number of unique lat, lng attributes. Just everything else(name, formatted address,etc...) all return null. I've searched but can find no reason for this. Anybody else have experience with this issue or maybe an idea to correct it? Thanks!
I figured it out, in my url I was using "radarsearch", where i should have been using "nearbysearch". Thanks!
It seems a little odd to my, but although everybody knows about the new google search urls (see Google using # instead of search? in URL. Why?) no one has a problem with the HTTP_REFERER.
I'm using the referrer to parse the google string for the searchquery (&q= ) but as this is all in a hash-tag it wont be sent to the server and all i get is "http://www.google.de/".
So do you know a way of getting the query the user searched for, befor landing on my site?
Due to late-2011 Google security changes, this is no longer possible when the search was performed by a signed-in Google user. See:
http://googleblog.blogspot.com/2011/10/making-search-more-secure.html
http://analytics.blogspot.com/2011/10/making-search-more-secure-accessing.html
Since there are multiple q's in the query string you have to match the "q" parameter globally and take the last one:
/[?|&|#]q=([^&|^#]+)/ig
Get rid of "site:" searches (there are others, but I haven't done them)
/[\+|?|&]?site:([^&|^#])+/g, '');
Then parse the results.
/[\w^'\(\)\{\}]+|"[^"]+"/g
This has been working well for me.
I am trying to search all tweets with a given hashtag (Using titanium appcelerator).
I have a working code to search all tweets from a given user (for example #prayforjapan).
Now I'm trying to get all the tweets from #prayforjapan. This isn't working..
I tried the following method (since i found it on here
Now to search for the names i use this url:
var xhr = Ti.Network.createHTTPClient();
xhr.timeout = 1000000;
xhr.open("GET","http://api.twitter.com/1/statuses/user_timeline.json?screen_name="+screen_name);
For the Hashsearch i tried the following code (doesn't work tho)
var xhr = Ti.Network.createHTTPClient();
xhr.timeout = 1000000;
xhr.open("GET","http://search.twitter.com/search.json?q=prayforjapan");
Does anyone know what's wrong with this search? or which link it should be?
Thanks!
Well, I played with it for a little bit and came up with this link format.
http://search.twitter.com/search?q=%23prayforjapan
How does that work?
%23prayforjapan is same as #prayforjapan
Sorry, Twitter does not supply this, neither with Rest or Streaming APIs. They only provide partial results unless you pay for the "garden hose" or "firehose," both of which are very costly. Garden hose starts at about $6,000/month, currently.