Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
The purpose is just to dl the football program to the pi, but I'm struggling in how to dl the matches and odds. I've tried curl and wget, but not getting anything...
Any suggestions? Is it doable?
My challenge is that the file retrieved by wget "https://www.norsk-tipping.no/sport/oddsen"
does not contain any matches. It's just a html file but not of interest.
I guess they are using a script program or something to "hide" the content...?
My challenge is that the file retrieved by wget "https://www.norsk-tipping.no/sport/oddsen"
does not contain any matches. It's just a html file but not of interest.
I guess they are using a script program or something to "hide" the content...?
Can't say I actually didn't visit the link.
But ... from your first post I sounded as if you wanted to dl their program? Or do you mean a game program that is data covering the details of a specific game versus their actual code? I'd doubt they'd publish their code or image to be accessible on a site.
No, I'm not interested in their code. I'm interested in the matches and the odds, e.g.
Manchester City Real Madrid 1.45 4.50 6.20
Liverpool Villarreal CF 1.28 5.50 9.50
etc.
But the file I download does not contain any matches, so I'm curious where they've "hidden" the matches and odds...
Well under the browser if you save website full, does that contain the data? If so you'll have to figure out how the browser saves the whole page and then filter out what you want.
Or .... it's been a long time, some browsers had or have like an attribute like view, I forget the name. I use the keyboard a lot versus mouse and so I use CTRL-L to allow me to type into the browser location bar for my website choice. At times I would "fat finger" it and hit CTRL-I and whatever they call the view, it would bring up like expert page information into a sub-window.
^ This is actually the right answer.
Yes, the site does not work without javascript and wget doesn't do javascript.
There's no actual content on that page's HTML, it's all provided by javascript.
Good luck picking that apart.
Maybe the OP is hoping like "save as" and all data is downloaded. Save as used to work on the old days (table era, but now with bootstrap and other tools; scraping with python or other language could be your best option), but newer websites doesn't let you save some data easily.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.