Extract data from html page and extract pre-structured JSON
Hi hugging face community !I try to parse an html file and extract data to json.For example, I want to crawll a web page listing events, such as this one  “La programmation | Bataclan - Bataclan”and search the html to find all gigs and generate a JSON structured like this:{
 name: 'name of the event'
 date: 'a timestamp',
 url: 'url of event'
 artists: [
 {
   name: 'name of artist'
   style: 'style of artist'
   url: 'url of artist'
  }
]}"I’d appreciate some expert advice. Is the Text2TextGeneration pipeline the best model for this type of task?
2024-09-23T15:54:52Z
First off, let me say that LLM is not my area of expertise. Not even an expert in anything.The output from this space is markdown, but if you look atapp.py, you’ll see that LLM is used. Other spaces, too, but it looks like something that could be diverted.huggingface.coSpaces - Hugging FaceDiscover amazing ML apps made by the communityhuggingface.coHTML To Markdown - a Hugging Face Space by maxiwDiscover amazing ML apps made by the community