Solutions to "Just KNIME It!" Challenge 9 - Season 3

:sun_with_face: Happy Wednesday, everybody! :sun_with_face:

We just posted a new Just KNIME It! challenge! :moneybag: You’re more interested in finance these days, and also want to learn more about web scraping for work :robot:. Why not unite both interests and web scrape finance news with KNIME? :newspaper: :newspaper_roll:

Here is the challenge. Let’s use this thread to post our solutions to it, which should be uploaded to your public KNIME Hub spaces with tag JKISeason3-9.

:sos: Need help with tags? To add tag JKISeason3-9 to your workflow, go to the description panel in KNIME Analytics Platform, click the pencil to edit it, and you will see the option for adding tags right there. :slight_smile: Let us know if you have any problems!

3 Likes

Hello, here is my solution for this challenge.
I used web interaction for the first time and I like it!

I filtered two words (AI and NVIDIA) for example.
Relevant articles are displayed in a Table View with clickable links.
All articles are stored in an excel file for later access.

2 Likes

I reset your workflow and got the following error on rerun:

1 Like

Depending on screen resolution or zoom in firefox an additional button (scroll-down-btn) needs to be clicked.
Yesterday I had to click (here) as site did not reload automatic but not today so i skipped that clicker.

2 Likes

Tried your rev 1. Still get same error after executing second clicker. Does the choice of browser mean the one I’m using on my local machine? I’m using Chrome. I selected it and still get same error.

1 Like

That challenge was seriously educational! Workflow takes a few minutes to run after extracting the initial links.

2 Likes

My solution to the challenge. I have to say these nodes makes web scraping so much easier… I wrote selenium code in python. This visual framework is so much better and much more understandable.

It cannot be seen in the picture but the tiles are animated :upside_down_face:

5 Likes

Hi @alinebessa :wave: :slightly_smiling_face:, this afternoon Jakarta time, I’ll be uploading a simple solution to the challenge given in JKISeason3-9. Stay tuned!

3 Likes

Hi all,
Here is my solution. I made it with reference to @berti093 's solution.

My solution has animation title & time when your browser access the news header. And also has a table containing links to access each article.


6 Likes

Hi all,
Here is my solution.

I have created an interactive dashboard with a range filter.
If you select “more than 24 hours” in the pre-filter section, the unit of the range filter will change from hours to days.
Additionally, you can access the original news page by clicking on the hyperlink.

7 Likes

Hi all,
Here is my solution.
The titles have embedded links to their respective web pages.

6 Likes

Hello JKIers,
This is my take to the challenge, strongly inspired on my previous colleagues’ submits. So thx a lot for the lessons, I’ve tried to tag the main insight owners within the node labels.

My main contribution in the workflow, it has been the image capturing; since I’ve used the ‘Image Processing’ extension’s nodes, as I learned from JKI S03 CH07, capturing the images from images’ URL

Thank you to the KNIME team for these interesting challenges. They allow me to familiarize with new node extensions and data processing.

Keep coding :vulcan_salute:t4:

4 Likes

I’ve downloaded most of the challenge solutions. Any workflow that includes a Clicker node fails on a reset. @Tofusa and @sryu’s work fine on a reset and don’t include Clicker nodes. See my earlier post for the error message.

1 Like

Hi @rfeigel! Thank you for pointing that out.

Sadly without the clicker it just gets for me one header row, the h1. I tried to run @Tofusa’s solution but just one row was retrieved with the content retriever, so the workflow is “empty”.

Can it be the problem that the “do you accept or reject cookies” tab doesn’t come for everybody? And it generates the error, as tofusa, sryu and rfeigel has the cookies “turned off” and the others do not have that turned off (maybe regional setting, or some configuration in the browser)? For me the link I give to the navigator gets this:

I updated my workflow. For me it runs fine. It checks if the first retriever retrieves the “cookie page” and run the clicker node if there is cookie page. Could you please test @rfeigel if it runs fine in your environment? (It’s not optimized yet as I just test now)

3 Likes

Reset results in this error. I have an adblocker and Malwarebytes running.

1 Like

I do not understand how can it be, as you said that sryu’s and tofusa’s solution was worked for you and they have the same sequence as me. (sryu’s solution contains Edge browser just like my solution, the configuration of these three nodes are totally the same)

Sryu:
image

Tofusa:
image

Mine:
image

Could you help what is the output of the other two solution’s content retriever node @rfeigel ?

1 Like

Sryu


tofusa

2 Likes

Same as mine after the clicking… :confused:

I just do not understand how can it be, that the nodes are perfectly the same (first three nodes) and it works in the other two solution but not in mine.

As a last resort I tried to handle it from selenium side. I added a command line argument: --disable-extensions. In theory it disables every extension in your browser (I say in theory as I didn’t tried it in KNIME just in Selenium).

I updated my workflow. Hope this command line solves the issue, I do not have more idea, it should be tested in different environments :confused:

2 Likes

Little bit late to the party, but here is my solution. I kept it simple and extracted the titles visible on the first page after getting rid of the cookie notice. Worked out a way to filter those rows that were ads and then showed the titles in a table view.

As this extension is still fairly new and I have used it a few times I experimented with recording whilst building the solution to also share on how one can find which classes, ids etc. to search for:

Let me know your thoughts :-).

On the issue @rfeigel has: My experience with Selenium is that sometimes it’s just acting up - can already happen if someone is “just” using a different browser, but I also had the odd experience where the initial browser window is still open, I add a clicker / retriever / navigator / whatever node for a next step and it triggers opening an entirely new window… guess there might be a reason it’s still a “Labs” extension.

5 Likes

My Submission :

2 Likes