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

First sample failed. #24

Open
tama1029 opened this issue Jun 11, 2016 · 1 comment
Open

First sample failed. #24

tama1029 opened this issue Jun 11, 2016 · 1 comment

Comments

@tama1029
Copy link

This url contains a redirect loop.

rss = SimpleRSS.parse open('http://slashdot.org/index.rdf')

I want to change the url after redirect.

@tama1029
Copy link
Author

https://github.com/cardmagic/simple-rss#usage

I use this sample.

result

/Users/tamaki1/.rbenv/versions/2.2.3/lib/ruby/2.2.0/open-uri.rb:224:in `open_loop': redirection forbidden: http://slashdot.org/index.rdf -> https://slashdot.org/index.rdf (RuntimeError)
    from /Users/tamaki1/.rbenv/versions/2.2.3/lib/ruby/2.2.0/open-uri.rb:150:in `open_uri'
    from /Users/tamaki1/.rbenv/versions/2.2.3/lib/ruby/2.2.0/open-uri.rb:716:in `open'
    from /Users/tamaki1/.rbenv/versions/2.2.3/lib/ruby/2.2.0/open-uri.rb:34:in `open'
    from parse_test.rb:5:in `<main>'

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

No branches or pull requests

1 participant