14 lines
378 B
Python
14 lines
378 B
Python
![]() |
#!/usr/bin/env python3
|
||
|
# pull list of twitter users via city
|
||
|
# twint - https://github.com/twintproject/twint
|
||
|
|
||
|
import twint
|
||
|
# enter in a city and it will gather the users in that area on twitter.
|
||
|
|
||
|
def get_users(city):
|
||
|
c = twint.Config()
|
||
|
c.Near = "{}".format(city)
|
||
|
c.Format = "{user_id}, {username}"
|
||
|
r = twint.run.Search(c)
|
||
|
return list(r)
|