mirror of
https://github.com/instaloader/instaloader.git
synced 2026-10-16 13:48:03 -07:00
15 lines
386 B
Python
15 lines
386 B
Python
import instaloader
|
|
|
|
L = instaloader.Instaloader()
|
|
|
|
posts = instaloader.Hashtag.from_name(L.context, 'urbanphotography').get_posts_resumable()
|
|
|
|
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))
|