-
Notifications
You must be signed in to change notification settings - Fork 626
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
instagram ripper removes trailing _ from usernames #1182
Comments
Right. Found the location of the issue and I'm going to need some input from others before submitting a pull request as this isn't an instagram specific issue. The issue itself lies with the implementation of the
I'm not savvy enough with file paths to know if this behaviour is necessary. If it isn't then simply removing that line will work. Otherwise we'd need to change that implementation to something that appends a safe, non-intrusive character rather than simply deleting it altogether. Also, looking at the attached reddit thread it would appear that usernames may have leading underscores as well, which would in this case be removed by the second My proposal is to simply prepend and append a character to usernames in this function from the
Like so
With the star being a placeholder for now. That or we leave it to the specific rippers to overload said method. If the latter, I'll go ahead and make the specific implementation for instagram |
I'm pretty sure I wrote that code to deal with rippers that didn't bother dealing with trailing _s
Just removing the
In that case we should pull that statement as well.
It's possible but what could we use? The only safe chars to use is a-zA-Z._-
* isn't file system safe. I think this would be better solved by implementing the meta data feature that was talked about here. It be trivial to store the full unchanged username in a json file and we wouldn't have to worry about filesystem safety |
Expected Behavior
Rips the user and saves the pictures to a folder called indithew_
Actual Behavior
Strips the trailing _ and saves the images to a folder called indithew
This bug was report by ManOfSin666 on reddit here
The text was updated successfully, but these errors were encountered: