PuerkitoBio / PuerkitoBio/goquery

Function to find the selector of a node

Open
#198 5 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
15k
Forks
935
Avg merge
1d 8h
Merged PRs (30d)
4

Description

  //node is a sub html*node of doc
  // if ok return the select string such as `.sidebar-reviews article .content-block a`
   sel, ok :=  doc.FindSelector(node) 

Could this function be possible?

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

The issue only identifies the proposed doc.FindSelector(node) entry point and an example selector; start by clarifying the expected selector-generation behavior for a sub-node. Done requires an agreed scope and verified behavior, but the issue does not name files or tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
web-dev
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.