10
45
Fork
You've already forked doipjs
28

[NEW CLAIM] HTML #169

Closed
opened 2025年06月07日 15:01:36 +02:00 by quokka · 2 comments
Contributor
Copy link

Fetcher

Name: HTML

Short description: HyperText Markup Language

Website: N/A

API documentation: N/A

Proposed verification mechanism

  • We create a new fetcher that takes a URL and a CSS selector query
  • We fetch() the URL's raw HTML content, and use cheerio to query it
  • We then convert all the queried nodes into JSON using html-to-json-parser, and return them

Remarks

  • This is not a service provider, but a fetcher that will help create other service providers.

Example response

If we have the following HTML:

<div id="ariadne">openpgp4fpr:4993568a993436c36d0d77c6c8e368337d68194a</div>

and we query #ariadne, it will return

[
 {
 "type": "div",
 "content": [
 "openpgp4fpr:4993568a993436c36d0d77c6c8e368337d68194a"
 ],
 "attributes": {
 "id": "ariadne"
 }
 }
]

Tasks

### Fetcher Name: HTML Short description: **H**yper**T**ext **M**arkup **L**anguage Website: N/A API documentation: N/A ### Proposed verification mechanism * We create a new fetcher that takes a URL and a CSS selector query * We `fetch()` the URL's raw HTML content, and use [`cheerio`](https://www.npmjs.com/package/cheerio) to query it * We then convert all the queried nodes into JSON using [`html-to-json-parser`](https://www.npmjs.com/package/html-to-json-parser), and return them ### Remarks * This is <em>not</em> a service provider, but a fetcher that will help create other service providers. #### Example response If we have the following HTML: ```html <div id="ariadne">openpgp4fpr:4993568a993436c36d0d77c6c8e368337d68194a</div> ``` and we query `#ariadne`, it will return ```json [ { "type": "div", "content": [ "openpgp4fpr:4993568a993436c36d0d77c6c8e368337d68194a" ], "attributes": { "id": "ariadne" } } ] ``` ### Tasks <!-- Leave the following unchecked --> - [ ] Verification mechanism tested - [ ] Added to [doip-js](https://codeberg.org/keyoxide/doipjs) - [ ] Added to [doip-rs](https://codeberg.org/keyoxide/doip-rs) - [ ] Added proxy routes (if needed) - [ ] Added to [keyoxide-brands](https://codeberg.org/keyoxide/keyoxide-brands) - [ ] Added to [documentation](https://codeberg.org/keyoxide/keyoxide-docs)
Author
Contributor
Copy link

doipjs PR: #170

`doipjs` PR: https://codeberg.org/keyoxide/doipjs/pulls/170
Author
Contributor
Copy link

Closed with merge

Closed with merge
Sign in to join this conversation.
dev
main
dev
fix-irc-fetcher
new-claim-eveonline-143
prepare-new-release
fix-jsdoc-types
yarn-to-npm
support-openpgp-aspe-claims
support-html-alias
improve-activitypub-support
v1-restructure
into-es-module
support-aspe
fix-js-lsp-issues
improve-linting
add-markers
support-opencollective-claim
support-entity-decoding
use-rome-tools
support-cloudflare-buster
support-fediverse-posts
matrix-room-verification
2.1.0
2.1.0-rc.3
2.1.0-rc.2
2.1.0-rc.1
2.0.1
2.0.0
2.0.0-rc.1
1.2.9
1.2.8
1.2.7
1.2.6
1.2.5
1.2.4
1.2.3
1.2.2
1.2.1
1.1.1
1.1.0
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
v0.19.1-alpha.0
0.19.0
0.18.3
0.18.2
0.18.1
0.18.0
0.17.5
0.17.4
0.17.3
0.17.2
0.17.1
0.17.0
0.16.4
0.16.3
0.16.2
0.16.1
0.16.0
0.15.7
0.15.6
0.15.5
0.15.4
0.15.3
0.15.2
0.15.1
0.15.0
0.14.0
0.13.0
0.12.9
0.12.8
0.12.7
0.12.6
0.12.5
0.12.4
0.12.3
0.12.2
0.12.1
0.12.0
0.11.2
0.11.1
0.11.0
0.10.5
0.10.4
0.10.3
0.10.2
0.10.1
0.10.0
0.9.4
0.9.3
0.9.2
0.9.1
0.9.0
0.8.5
0.8.4
0.8.3
0.8.1
0.7.4
0.7.3
0.7.2
0.7.1
0.7.0
0.6.0
0.5.1
0.5.0
0.4.2
0.4.1
0.4.0
0.3.0
0.2.0
Labels
Clear labels
bug
Something is not working

Archived

enhancement
New feature

Archived

Contribution welcome
Get started contributing here
Good first issue
Good if you are new to the project or to open source contributions
Impact
External
Affects the people using the project
Impact
Internal
Affects on the people working on the project
Priority
Critical
Work on right now
Priority
High
Work on at earliest convenience
Priority
Low
Work on in spare time
Priority
Medium
Work on regularly
Review
Duplicate
Already exists
Review
Off Topic
Does not fall within the scope of the repo/project
Status
Backlog
Is not being worked on yet
Status
Blocked
Is waiting on something or someone
Status
Completed
Is done
Status
In Progress
Is being worked on
Status
Investigating
Is waiting on research or questions
Status
Needs Decision
Is waiting on a decision by the devs/contributors
Status
Needs Info
Is waiting on additional information before it can be solved
Status
Needs Triage
Is new issue that needs reviewing
Status
Testing
Is being checked and verified
Status
Waiting For Review
Is waiting on reviewers to approve
Status
Won't Fix
Won't be fixed
Type
Bug
Related to something not working as intended
Type
CI
Related to continuous integration
Type
Documentation
Related to documentation
Type
Enhancement
Related to a new feature or an improved one
Type
New Claim
Related to a new identity claim/proof
Type
Security
Related to security
Type
Tests
Related to code tests
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
keyoxide/doipjs#169
Reference in a new issue
keyoxide/doipjs
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?