I'm not new to node-red, but new to web scraping, and need some help.
I'd like to fetch the Hit Counter number in the footer of the following web page:
www.katharina-eppenberger.ch
Here is the web developer info of that section of the page:
As a flow I did the following:
inject -> http request -> html -> debug
In the http request node I inserted the URL for the web page.
In the html node I used the found class ".footerHolder" in the Selector field.
As output I selected 'only the text part'.
This worked nicely. As output in the debug node I got the following string: "Hit counter #"
Instead of the number, I got a hash sign.
The web developer page from my browser clearly shows a number.
The node-red flow produces a hash sign.
So my browser gets something differently back than the http request node.
Does someone have any hints how I can get at the real number with my web scraping attempt?
Kind regards,
Urs.
[{"id":"3b418d942099c879","type":"tab","label":"KE Web","disabled":false,"info":"","env":[]},{"id":"6ad1dcfd41d6c086","type":"comment","z":"3b418d942099c879","name":"Fetch hit counter from katharina-eppenberger.ch","info":"","x":360,"y":40,"wires":[]},{"id":"912e78ff26768e82","type":"inject","z":"3b418d942099c879","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":120,"y":100,"wires":[["87694a90cd180284"]]},{"id":"87694a90cd180284","type":"http request","z":"3b418d942099c879","name":"","method":"GET","ret":"txt","paytoqs":"ignore","url":"https://katharina-eppenberger.ch/","tls":"","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":290,"y":100,"wires":[["e5632512d48c79ce"]]},{"id":"e5632512d48c79ce","type":"html","z":"3b418d942099c879","name":"","property":"payload","outproperty":"payload","tag":".footerHolder","ret":"text","as":"multi","chr":"_","x":470,"y":100,"wires":[["c39bda80eb6dbfd9"]]},{"id":"c39bda80eb6dbfd9","type":"debug","z":"3b418d942099c879","name":"debug 3","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":640,"y":100,"wires":[]}]






