Skip to content
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

depositfiles.com non-US URLs can't extract filename #166

Open
GoogleCodeExporter opened this issue Oct 1, 2015 · 0 comments
Open

depositfiles.com non-US URLs can't extract filename #166

GoogleCodeExporter opened this issue Oct 1, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?

1. Download a file with a non-US url, e.g. http://www.depositfiles.com/de/ID 
instead of http://www.depositfiles.com/en/ID.

DepositFiles.pm expects an English page. It tries to fix this with a cookie, 
but the cookie it sets is overridden by the /de/ in the URL. 

Fix: cut the country code from URLs, e.g.

DepositFiles.pm:
    $self->{URL} = $_[2];
+++$self->{URL} =~ s|depositfiles.com/../|depositfiles.com/|g;

With the cookie set, the URL without the country code will be rewritten as /en/ 
and then the scraping will work.


Original issue reported on code.google.com by [email protected] on 19 Oct 2010 at 3:48

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant