Getting webpage content with Ruby -- I'm having troubles -


I want to get content from this * page. What I have seen is the solution to parse CSS elements;

  file = file.open ('http: // itscore .runescape.com / index_lite.ws? Player = zezima', 'r') content = file. Contains content  

Error:

  Tracker rb: 1: In 'Start': Invalid argument - http://hiscore.runescape.com/ (Errno :: EINVAL) from index_lite.ws?player=zezima tracker.rb: 1: from 'tracker.rb' in Open: 1  

* http: // itscore .runescape.com / index_lite.ws? Player = zezima

Try to format you In this post it does not recognize the underscores (_) in the URL for some reason in a link As

After the

you actually want to use open () available by the kernel class read from the URI

  requires 'open-yury' file = open ('http: // h Iscore.runescape.com/index_lite.ws?player=zezima') content = file.read content It  

relates to the same thread, the same question The Bridesmaid:


Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

jquery - SimpleModal Confirm fails to submit form -

php - Multiple Select with Explode: only returns the word "Array" -