| 461 | return '%s?%s' % (api_url, '&'.join(querystring)) |
| 462 | |
| 463 | def search_gen(self, search_query, **params): # pragma: no cover |
| 464 | warnings.warn( |
| 465 | 'This method is deprecated. You should use Twython.cursor instead. \ |
| 466 | [eg. Twython.cursor(Twython.search, q=\'your_query\')]', |
| 467 | TwythonDeprecationWarning, |
| 468 | stacklevel=2 |
| 469 | ) |
| 470 | return self.cursor(self.search, q=search_query, **params) |
| 471 | |
| 472 | def cursor(self, function, return_pages=False, **params): |
| 473 | r"""Returns a generator for results that match a specified query. |