Hello all! I would like to search by emoji and date using the Premium API Full archive. Ideally, I’d like to go week by week and look at as many tweets as possible that use a specific emoji (so I’m searching by emoji and date.)
I’m using this Python wrapper to collect tweets and tried searching by actual emoji itself in between < > (as suggested here) and by the tail ending of the UTF-8 encoding (as suggested here).
Here’s what the query looks like:
rule = gen_rule_payload(“1F481”, # Or the actual emoji <
>
from_date=“2014-01-01”,
to_date=“2014-01-31”,
results_per_call=100)
tweets = collect_results(rule, max_results=100, result_stream_args=premium_search_args)
Each time I’ve gotten this error:
HTTP Error code: 422: Unprocessable Entity: This is returned due to invalid parameters in a query or when a query is too complex for us to process. –e.g. invalid PowerTrack rules or too many phrase operators, rendering a query too complex.
Any suggestions of what I’m doing wrong? I get this error when I try to do a bounding box and point radius search with dates too. Can I not do two things at once? 