Comments (7)
Thanks for your interest and for involving Instaloader in your research project. My latest commit, 3e13601, implements the download_hashtag()
function as well as downloading a hashtag with ./instaloader.py #hashtag
. The --fast-update
flag is also supported, to abort the download as soon as the first already-downloaded picture is encountered.
To download only a certain number of pictures, you'd have to write a small Python snippet:
from instaloader import download_hashtag, get_anonymous_session
download_hashtag('cat', session=get_anonymous_session(), max_count=30)
Thanks a lot for offering compensation. Instaloader is an open source project, developed in our free time as a hobby. It is a pleasure for us to provide this script to the community for free. However, donations may act as a huge motivation for maintaining this project 😊 We can discuss details per email.
from instaloader.
Wow! That was fast! Thank so much. I'll try it out. Yes, I can donate to the project. Let me know how. My email = sean_patel @ icloud.com
from instaloader.
Hi, I tried the new code and it's not doing anything. I am on Windows. I did the following cmd like u suggest in u r readme.md
pip3 install git+https://github.com/Thammus/instaloader
That's not updating my installation as it's saying I am already on latest 1.2.2
version.
How do I update the library locally?
I also tried a git clone on the url to get latest. But when I run it it's quietly exiting on existing hashtag without doing anything.
Sorry, not a python guy.
from instaloader.
To update Instaloader via pip, you'd have to do
pip3 install --upgrade git+https://github.com/Thammus/instaloader
Without the --upgrade
flag it doesn't update the package as it notices that the version string didn't change yet.
Anyway there is another thing I just noticed: The # character indicates the beginning of a comment in bash, thus calling instaloader #hashtag
will just silently terminate as no arguments will be passed to Instaloader. It is necessary to escape or quote the hashtag:
instaloader "#cat"
(We certainly should mention that in our README.md)
from instaloader.
Thank you! I ran the upgrade as you suggested and this was the output.
Installing collected packages: instaloader
Found existing installation: instaloader 1.2.2
Uninstalling instaloader-1.2.2:
Successfully uninstalled instaloader-1.2.2
Running setup.py install for instaloader: started
Running setup.py install for instaloader: finished with status 'done'
Successfully installed instaloader-1.2.2
Then I tried the following #
hashtag import...
instaloader "#boxingmeme"
and it download a few and then errors out as shown below.
$ instaloader "#boxingmeme"
Retrieving pictures with hashtag #boxingmeme
[ 1] #boxingmeme 2017-04-19_15-29-49 [Running the mitts with the IB▒] Traceback (most recent call last):
File "C:\Python352-32\Scripts\instaloader-script.py", line 9, in <module>
load_entry_point('instaloader==1.2.2', 'console_scripts', 'instaloader')()
File "c:\python352-32\lib\site-packages\instaloader.py", line 813, in main
not args.no_sleep, args.shorter_output, args.quiet)
File "c:\python352-32\lib\site-packages\instaloader.py", line 726, in download_profiles
sleep=sleep, quiet=quiet)
File "c:\python352-32\lib\site-packages\instaloader.py", line 582, in download_hashtag
shorter_output=shorter_output, quiet=quiet)
File "c:\python352-32\lib\site-packages\instaloader.py", line 490, in download_node
video_data['entry_data']['PostPage'][0]['media']['video_url'],
KeyError: 'media'
Seems to work for other hashtags... not sure if the content of that #hashtag stream is messing up your script.
Please advice!
from instaloader.
Indeed, they seem to have changed some details of video node metadata. Thanks for reporting this!
My latest commit, 6b345e1, should fix it.
from instaloader.
That works. Wow, you are awesome!!! Thanks ~!!!
from instaloader.
Related Issues (20)
- Reel downloading: is it possible? HOT 9
- error 429, how to bypass the rate limit? HOT 7
- unable to fetch high quality image HOT 1
- Trying to install using pip install instaloader but error 'ERROR: Could not build wheels for instaloader, which is required to install pyproject.toml-based projects'
- Errors with fetching iphone struct in highlights and story items
- Impossible to retrieve Location info | Especially Latitude and Longitude HOT 1
- The cover image download feature downloads the wrong image
- Location ID syntax fails with HTTP code 201
- ConnectionException: JSON Query to graphql/query: HTTP error code 401. HOT 1
- Multiple post owners HOT 1
- User agent mismatch, changed many useragents but to no avail, still the same error. HOT 5
- Get hashtag #vegan: JSON Query to explore/tags/vegan/: 404 Not Found HOT 4
- Different exit codes for different failure types HOT 4
- Add more return fields on 'get_sidecar_nodes' method HOT 1
- Error downloading IGTV files
- The procedure entry point PssQuerySnapshot could not be located in the dynamic link library KERNEL32.dll. HOT 2
- How to download 615_import_firefox_session.py
- Is it possible to download a instagram reel with audio, using instaloader? HOT 2
- Trying to load_session_from_file, but it's looking in /var/folders/...
- Unable to download videos posted by users on Reels. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from instaloader.