jpillora / jpillora/scraper

Generic XML (and RSS) Support

Open
#2 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
54
Forks
12
PR merge metrics
No merged PRs in 30d

Description

Currently, scraper doesn't work very with normal XML documents, specifically - RSS.

There's a few ways to solve this.

  1. The included CSS selector engine (https://github.com/PuerkitoBio/goquery) doesn't parse XML properly it seems. We could modify the HTML to make it conform. OR

  2. Each configured path could have a mode, where:

    1. html implies selector is a CSS selector (and is the default mode)
    2. xml implies selector is an XPATH selector (eww) OR
    3. xml implies selector is a new format: foo bar, simply traverses into <foo> then into <bar> OR
    4. xml removes all other settings, and simply converts XML into JSON directly (this is probably the easiest)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files or tests are named. Start by inspecting the scraper's current HTML parsing and configured-path handling, then review the linked goquery behavior for XML and RSS input. Done should mean normal XML documents, specifically RSS, are supported through a clearly chosen approach.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.