× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



On Mon, Oct 2, 2017 at 4:58 PM, Pete Helgren <pete@xxxxxxxxxx> wrote:
Since we are all straying outside the Python fold, I use JSoup to accomplish
something similar in Java.....similar I guess to "Beautiful Soup"...

Well, the purpose of straying outside Python has mainly been to say
"here's something that worked for me; you can probably try the
equivalent thing in Python". Jack's response was a little more
mysterious; he just tossed in a link for Selenium, which OP already
mentioned he had looked into.

You are correct that jsoup is pretty much Java's BeautifulSoup, but
BeautifulSoup came first (by about 5 years, and very likely was a
strong influence on the development of jsoup), and it was the other
thing OP already mentioned besides Selenium.

So far Kevin's response has probably been the most helpful. There's no
way he could have known I already recommended MechanicalSoup to OP a
few months ago, when he approached me about this topic off-list.

I think what Roger is mainly missing right now is examples, tutorials,
and specific tips that come from experience, particularly from those
who are familiar with any IBM-i-specific wrinkles in the endeavor.

Unfortunately, I only have a tiny bit of experience with Selenium, via
Python on Windows. I never got to the point where I felt like I really
knew what I was doing (and a few months later, when I had some time to
try to expand on my early experiments, I discovered the site I was
trying to interact with changed some stuff which broke what I'd done
earlier). But a lot of that is just me not knowing much about Web
stuff in general.

I will say I agree with Kevin that if you can achieve what you need
without a full-blown browser (which is what Selenium is), it's usually
preferable to do so. Of course, you can't always tell what you can
achieve with something until you try it, so there's not really much
for it except to try it. I would try MechanicalSoup or RoboBrowser
first. (Whichever one seems friendlier or more intuitive.)

Roger, have you already attempted anything? If so, where are you getting stuck?

John Y.

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.