Commit b36f0165 authored by Cody Zacharias's avatar Cody Zacharias Committed by GitHub

Rewritten; Added ability to scrape follows & more

parent bea3f0bb
...@@ -534,16 +534,28 @@ async def getFavorites(init): ...@@ -534,16 +534,28 @@ async def getFavorites(init):
return tweets, init, count return tweets, init, count
async def outFollow(f):
'''
Will include more data on the user
upon request.
'''
user = f.find("a")["name"]
output = user
if arg.o != None:
print(output, file=open(arg.o, "a", encoding="utf-8"))
return output
async def getFollow(init): async def getFollow(init):
''' '''
For now, just printing the Twitter username For now, just printing the Twitter username
of a follower/user followed. Will include more of a follower/user followed.
data on the user upon request.
''' '''
follow, init = await getfeed(init) follow, init = await getfeed(init)
for f in follow: for f in follow:
user = f.find("a")["name"] print(await outFollow(f))
print(user)
return follow, init return follow, init
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment