You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+23-21
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ Python package to help with parsing, handling and other manipulations of the Ind
13
13
14
14
See the examples/ directory for sample command line tools.
15
15
16
-
Because Ronkyuu uses BeautifulSoup4 for it's amazing HTML wrangling ability, you have the option of enabling faster parsing via the `lxml` package instead of the default `html5lib` package. This is done by having `lxml` installed and...
16
+
Because Ronkyuu uses [BeautifulSoup4](https://pypi.org/project/beautifulsoup4/) for it's amazing HTML wrangling ability, you have the option of enabling faster parsing via the [`lxml`](https://pypi.org/project/lxml/) package instead of the default [`html5lib`](https://pypi.org/project/html5lib/) package.
17
17
18
18
```
19
19
import ronkyuu
@@ -28,35 +28,35 @@ Contributors
28
28
29
29
WebMentions
30
30
===========
31
-
findMentions()
32
-
--------------
33
-
Find all <a /> elements in the html returned for a post.
34
-
If any have an href attribute that is not from the one of the items in domains, append it to our lists.
31
+
findMentions(sourceURL, targetURL, ...)
32
+
---------------------------------------
33
+
Find all `<a />` elements in the html returned for a post.
34
+
If any have an `href` attribute that is not from the one of the items in domains, append it to our lists.
35
35
36
-
findEndpoint()
37
-
--------------
38
-
Search the given html content for all <link /> elements and return any discovered WebMention URL.
39
-
40
-
discoverEndpoint()
36
+
findEndpoint(html)
41
37
------------------
42
-
Discover any WebMention endpoint for a given URL.
38
+
Search the given `html` content for all `<link />` elements and return any discovered WebMention URL.
39
+
40
+
discoverEndpoint(sourceURL, ...)
41
+
--------------------------------
42
+
Discover any WebMention endpoint for a given `url`.
Determine if a given resourceURL is authoritative for the profileURL.
59
-
The list of rel="me" links will be discovered if not provided in the optional profileRelMes parameter or the resourceRelMes paramter.
59
+
The list of `rel="me"` links will be discovered if not provided in the optional profileRelMes parameter or the resourceRelMes paramter.
60
60
61
61
Validators
62
62
==========
@@ -66,6 +66,8 @@ TODO: fill in details of how to use
66
66
67
67
Requires
68
68
========
69
-
Python v3.7+ but see `Pipfile` for a full list. The `Makefile` takes advantage of `Pipenv` (which will use `pyenv` if installed) to manage the Python dependencies.
69
+
Python v3.9+ -- see `Pipfile` for the full list
70
+
71
+
The `Makefile` takes advantage of `Pipenv` (which will use `pyenv` if installed) to manage the Python dependencies.
70
72
71
73
For testing we use [httmock](https://pypi.python.org/pypi/httmock/) to mock the web calls.
0 commit comments