14 lines
321 B
Python
14 lines
321 B
Python
#!/usr/bin/env python3
|
|
|
|
import instaloader
|
|
|
|
from datetime import datetime
|
|
from datetime import timedelta
|
|
|
|
SINCE = datetime.now()-timedelta(hours=1)
|
|
|
|
L = instaloader.Instaloader()
|
|
|
|
L.load_session_from_file('2001beam')
|
|
posts=L.download_feed_posts(max_count=20, fast_update=True, post_filter = ( lambda p: p.date > SINCE ))
|