mirror of
https://github.com/instaloader/instaloader.git
synced 2024-11-09 03:42:31 +01:00
15 lines
376 B
Python
15 lines
376 B
Python
import instaloader
|
|
|
|
L = instaloader.Instaloader()
|
|
|
|
posts = instaloader.Hashtag.from_name(L.context, 'urbanphotography').get_posts()
|
|
|
|
users = set()
|
|
|
|
for post in posts:
|
|
if not post.owner_profile in users:
|
|
L.download_post(post, '#urbanphotography')
|
|
users.add(post.owner_profile)
|
|
else:
|
|
print("{} from {} skipped.".format(post, post.owner_profile))
|