Skip to content

Instantly share code, notes, and snippets.

@noisy
Created December 31, 2013 14:49
Show Gist options
  • Save noisy/8197884 to your computer and use it in GitHub Desktop.
Save noisy/8197884 to your computer and use it in GitHub Desktop.
import wykop
def main():
APPKEY=""
SECRETKEY=""
ACCOUNTKEY=""
api = WykopAPI(APPKEY, SECRETKEY)
api.authenticate(LOGIN, ACCOUNTKEY)
authors = []
for page in range(1, 50):
entries = api.tag("nazwataga", page)
for entry in entries['items']:
authors.append(entry["author"])
authors = list(set(authors))
l = len(authors)/50
for i in range(0, l+1):
print ", ".join([ "@"+a for a in authors[i*50:(i+1)*50] ])
if __name__ == '__main__':
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment