Skip to content

Commit

Permalink
Bump up delays
Browse files Browse the repository at this point in the history
  • Loading branch information
ruebot committed Oct 15, 2024
1 parent d16334a commit 02f98f1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "digfemig"
version = "0.0.6"
version = "0.0.7"
readme = "README.md"
requires-python = ">=3.9.9"
description = "Utility to collect media for Instagram hashtags for the DigFemNet Project."
Expand Down
4 changes: 2 additions & 2 deletions src/digfemig/collector.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ def setup_media_directory(download_path, hashtag):


def nap_time():
time.sleep(random.uniform(1, 15))
time.sleep(random.uniform(1, 25))


# Download media.
def download_media(hashtag, session_file, download_path, username, password):

cl = authenticate(session_file, username, password)

cl.delay_range = [1, 15]
cl.delay_range = [1, 25]

cl.get_timeline_feed()

Expand Down

0 comments on commit 02f98f1

Please sign in to comment.