frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Hikugen – minimalistic LLM-generated web scrapers for structured data

https://github.com/goncharom/hikugen
2•goncharom•2h ago
Hey HN! I wanted to share a little library I've been working on to leverage AI to get structured data from arbitrary pages. Instead of sending the page's HTML to an LLM, Hikugen asks it to generate python code to fetch the data and enforces the generated data conforms to a Pydantic schema defined by the user. I'm using this to power yomu (https://github.com/goncharom/yomu), a personal email newsletter built from arbitrary websites.

Hikugen's main features:

- Automatically generates, runs, regenerates and caches the LLM-generated extraction code.

- It uses sqlite to save the current working code for each page so it can be reused across executions.

- It uses OpenRouter (https://openrouter.ai/) to call the LLM.

- It can fetch the page automatically (it can even reuse Netscape-formatted cookies) but you can also just feed it the raw HTML and leverage the rest of its functionalities.

Here's a snippet of what it looks like:

  from hikugen import HikuExtractor
  from pydantic import BaseModel
  from typing import List
  
  class Article(BaseModel):
      title: str
      author: str
      published_date: str
      content: str
  
  class ArticlePage(BaseModel):
      articles: List[Article]
  
  extractor = HikuExtractor(api_key="your-openrouter-api-key")
  
  result = extractor.extract(
      url="https://example.com/articles",
      schema=ArticlePage
  )
  
  for a in result.articles:
      print(a.title, a.author)
Hikugen is intentionally minimal: it doesn't attempt website navigation, login flows, headless browsers, or large-scale crawling. Just "given this HTML, extract this structured data".

A good chunk of this was built with Claude Code (shoutout to Harper’s blog: https://harper.blog/2025/02/16/my-llm-codegen-workflow-atm/.

Would love feedback or ideas—especially from others playing with codegen for scraping tasks.

How to maintain good vision amidst the myopia epidemic

https://ssathe.substack.com/p/vision-in-the-digital-age
1•plun9•3m ago•0 comments

Linux Performance

https://www.brendangregg.com/linuxperf.html
1•o4c•4m ago•0 comments

A Fart Saved My CSV

https://artificiallyintelligentspace.substack.com/p/a-fart-saved-my-csv
1•All_Things_AI•5m ago•0 comments

My Git history was a mess of 'update' and 'fix' – so I made AI clean it up

https://github.com/f/git-rewrite-commits
2•fka•5m ago•0 comments

Mysterious holes in the Andes may have been an ancient marketplace

https://www.sydney.edu.au/news-opinion/news/2025/11/10/mysterious-holes-in-the-andes-may-have-bee...
1•geox•7m ago•0 comments

Iran faces unprecedented drought as water crisis hits Tehran

https://www.bbc.com/news/articles/cy4p2yzmem0o
2•FridayoLeary•11m ago•1 comments

Industrial Policy for Tech Workers

https://inflectionpoints.work/articles/industrial-policy-for-tech-workers
1•The_Amp_Walrus•12m ago•0 comments

Show HN: Loocking for advice new product: Fast link shortener

https://coz.jp/en
1•danielpetrica•14m ago•0 comments

Bagger 288!

https://www.youtube.com/watch?v=azEvfD4C6ow
1•TMWNN•18m ago•0 comments

College Radio Stations

https://www.campus-fm.com/
2•bookofjoe•24m ago•0 comments

"The Book We All Need " by Claude Code Sonnet 4.5

https://github.com/cloudstreet-dev/The-Book-We-All-Need-Right-Now
1•DavidCanHelp•25m ago•1 comments

Gut microbiome affects alcohol preference by influencing brain's reward system

https://medicalxpress.com/news/2025-10-gut-microbiome-affects-alcohol-brain.html
2•PaulHoule•29m ago•0 comments

Show HN: DroidDock – A sleek macOS app for browsing Android device files via ADB

https://rajivm1991.github.io/DroidDock/
2•rajivm1991•32m ago•0 comments

Teach HN: Friends-only Facebook feed

https://www.facebook.com/?filter=friends&sk=h_chr&_fb_noscript=1
1•LandenLove•34m ago•1 comments

Work After Work: Notes from an Unemployed New Grad Watching the Job Market Break

https://urlahmed.com/2025/11/05/work-after-work-notes-from-an-unemployed-new-grad-watching-the-jo...
74•linkregister•39m ago•19 comments

Galaxy Brain Resistance

https://vitalik.eth.limo/general/2025/11/07/galaxybrain.html
3•yurivish•40m ago•0 comments

Rain: Cloud Leakage via Hardware Vulnerabilities – Vusec

https://www.vusec.net/projects/rain/
1•SpaghettiCthulu•42m ago•0 comments

Apple Developing These 5 New Satellite Features for iPhone

https://www.macrumors.com/2025/11/09/apple-developing-new-satellite-features/
1•mgh2•43m ago•0 comments

Show HN: Mxflo – Vibe code 2D games on your phone and play instantly

https://www.mxflo.com/beta
3•adithiya_shiva•51m ago•1 comments

2026 Nissan Leaf offers 300-mile range for $30k

https://abc7.com/post/new-2026-nissan-leaf-offers-300-mile-range-30000-price-tag/18076844/
1•lxm•52m ago•1 comments

Microsoft forms superintelligence team under AI head Mustafa Suleyman

https://www.cnbc.com/2025/11/06/microsoft-forms-superintelligence-team-under-ai-head-mustafa-sule...
6•gmays•52m ago•0 comments

Intel Xeon 6 Performance Feature Benchmarks: Latency Optimized Mode

https://www.phoronix.com/review/intel-latency-optimized-mode
1•dabinat•1h ago•0 comments

Sued by Nintendo

https://www.suedbynintendo.com/
27•notepad0x90•1h ago•2 comments

Why Does So Much New Technology Feel Inspired by Dystopian Sci-Fi Movies?

https://www.nytimes.com/2025/11/05/magazine/ai-tech-industry-sora-science-fiction.html
5•bookofjoe•1h ago•2 comments

There Are No Good Anti-Scandinavians

https://lichess.org/@/CkickyCheck/blog/there-are-no-good-anti-scandinavians/vncd0VCP
1•fzliu•1h ago•0 comments

The social contract of open source

https://snarky.ca/the-social-contract-of-open-source/
2•CharlesW•1h ago•0 comments

Show HN: Alignmenter – Measure brand voice and consistency across model versions

https://www.alignmenter.com
2•justingrosvenor•1h ago•1 comments

A place to meet new people and connect in Bern

https://connectbern.ch
3•chagaif•1h ago•1 comments

BBC director resigns over editing of Trump speech

https://www.ctvnews.ca/world/article/bbc-director-resigns-after-criticism-of-the-broadcasters-edi...
3•embedding-shape•1h ago•0 comments

What I Talk About When I Talk About Grading

https://unintendedconsequenc.es/what-i-talk-about-when-i-talk-about-grading/
1•paulorlando•1h ago•0 comments