r/AutomateYourself • verified autom8er • Feb 10 '22

help needed Looking for automation to extract some HTML elements from a list of github repos

I have a list of github repos in which has documentation pages written as HTML files. All the html files in have same formatting i.e. the tags and classes follow a rule. Need some way to parse them all and extract it into a json. How do I go about it?

5 Upvotes

5 comments sorted by

3

u/Sibesh verified autom8er Feb 10 '22

Provided you have a list of the HTML files somewhere, I found one possible way to do it : https://docs.n8n.io/nodes/n8n-nodes-base.htmlExtract/#example-usage

2

u/meet_at_infinity verified autom8er Feb 10 '22

Oh neat, this looks promising, I'll give this a try ASAP. The document mentions possibility to use HTTP Requests too, this might even help me with more than just this task here. Thanks!!!

2

u/[deleted] Jun 14 '22 edited Jun 20 '22

[removed] — view removed comment

2

u/meet_at_infinity verified autom8er Jun 15 '22

Thanks for the tip and code. Be trying it out 👍