Skip to content

Commit

Permalink
Merge pull request #21 from grtfou/dev-imp
Browse files Browse the repository at this point in the history
Edit: code
  • Loading branch information
grtfou committed Dec 21, 2015
2 parents 16a2f63 + 3a128e8 commit 24c5d10
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions crawler.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,10 @@ def run(self, client, talk_id, username, stop_time=0):
payload = {
'direction': 'NEXT',
'limit': page_limit,
'postId': post_rec,
'postId': post_rec, # test 6000 (photos and videos)
'talkId': talk_id,
}
post_rec += page_limit
post_rec += 100

r = self.session.get(self.url, params=payload)
if r.status_code != 200:
Expand Down
4 changes: 3 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import time

import aiohttp
Expand Down Expand Up @@ -37,5 +39,5 @@ def build(self):
return CrawlerWidget()

if __name__ == '__main__':
Window.size = (700, 600)
Window.size = (900, 600)
MainApp().run()

0 comments on commit 24c5d10

Please sign in to comment.