mirror of
https://github.com/instaloader/instaloader.git
synced 2024-11-04 09:22:29 +01:00
ae492ed68b
Presents code examples that use the instaloader module for more advanced tasks than what is possible with the Instaloader command line interface. Presents #46, #56, #110, #113, #120, #121.
15 lines
331 B
Python
15 lines
331 B
Python
import instaloader
|
|
|
|
L = instaloader.Instaloader()
|
|
|
|
posts = L.get_hashtag_posts('milfgarden')
|
|
|
|
users = set()
|
|
|
|
for post in posts:
|
|
if not post.owner_profile in users:
|
|
L.download_post(post, '#milfgarden')
|
|
users.add(post.owner_profile)
|
|
else:
|
|
print("{} from {} skipped.".format(post, post.owner_profile))
|