Just another Perl shrine | |
PerlMonks |
Re: Problem while using WWW::Mechanize module for getting htmlby Aldebaran (Curate) |
on Apr 18, 2020 at 20:51 UTC ( [id://11115745]=note: print w/replies, xml ) | Need Help?? |
So I start my first project using WWW::Mechanize. My goal is to get list of titles and url of bulletin board for given period. To start with, I tried to get html from this site. http://hiphople.com/kboard (It a Korean)
This is interesting as I am working in this same area today. A great tool that WM has is its mech-dump script. It helps to see what you're up against:
Pretty sparse for mech-dump...it would seem that there is almost nothing there according to WM. When you set a browser on it, you see that it is loaded with javascript, and that's when this tale changes. You might have a look at your own documentation by imitating this:
In my opinion, there's 2 things you need to do in order to get perl to operate on site translation to english. 1) You need to use something that can make heads or tails of javascript like WMC or WMF. To use the site as they intend, you need to log in. Do you have an account with them? P.S My English is not that great.You did better than great; you did fine. Best Wishes,
In Section
Seekers of Perl Wisdom
|
|