Ask Your Question

HTTP client URL to replace dynamic twitter hash tags

asked 2018-07-04 03:23:30 -0500

Edward gravatar image

Hello @iamontheinet !

Grateful for the upright response till now!

As per the pipeline provided link text it seems FIFA,Trump will give the tweets containing words as mentioned in i/p(like fetches all the tweets having key words and hash tags FIFA,Trump). What should be done in order to get the tweets only with hash tags FIFA,Trump(#FIFA,#Trump) as we give %23 for # in URL?

Suppose I give %23americaneagle%20OR%20%23FIFA in i/p file to get the tweets with hash tags americaneagle and FIFA.How shall I make changes to HTTP Client URL if I want my hash tags to be given as comma separated like american eagle,FIFA(will have to process tweets with those hash tags only) ?

Many Thanks!


edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2018-07-06 10:09:59 -0500

iamontheinet gravatar image

Hi Edward,

Assuming you've followed Twitter Search guidelines, I suggest the following.

Instead of .csv file, create a text file with one search phrase/term per line. (See below). This is because 1) it's a cleaner / better implementation for "file tail" operation, 2) You won't run into Twitter's Best Practice clause "Limit your searches to 10 keywords and operators." in a single request, and 3) it's easier to debug.


Then, you can add more terms dynamically at the tail end of the file. This works perfectly for me.

Cheers, Dash

edit flag offensive delete link more


Thanks Dash!It worked.It's fetching live tweets,but to get the older tweets if we want to get from a certain time?

Edward gravatar imageEdward ( 2018-07-09 02:35:04 -0500 )edit

You will need to pass 'until' param, but note that Twitter has a 7 day limit. For more details, refer to Twitter docs --

iamontheinet gravatar imageiamontheinet ( 2018-07-09 09:03:21 -0500 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2018-07-04 03:23:30 -0500

Seen: 42 times

Last updated: Jul 06