Browse Source

Update topic listing fetch to new layout

master
parent
commit
c68a9f673a
No known key found for this signature in database GPG Key ID: DA34C790D267C164
2 changed files with 4 additions and 4 deletions
  1. +2
    -2
      README.md
  2. +2
    -2
      tildee/models.py

+ 2
- 2
README.md View File

@ -1,3 +1,3 @@
This is tildee.py, a Python 3 library for interacting with the <https://tildes.net> API. Note that this API is not stable and not actually intended for external use, so this could break at any moment. Main repository and issue tracker is on [Dingenskirchen Systems Git](https://git.dingenskirchen.systems/Dingens/tildee.py) (Login using GitLab or -Hub available), there are mirrors provided on [GitLab](https://gitlab.com/deing/tildee) and [GitHub](https://github.com/deingithub/tildee) for discoverability.
This is tildee.py, a Python 3 library for interacting with the <https://tildes.net> API. Note that this API is not stable and not actually intended for external use, so this could break at any moment. Main repository and issue tracker is on [Dingenskirchen Systems Git](https://git.15318.de/dingens/tildee.py) (Login using GitLab or -Hub available), there are mirrors provided on [GitLab](https://gitlab.com/deing/tildee) and [GitHub](https://github.com/deingithub/tildee) for discoverability.
[PyPI](https://pypi.org/project/tildee/) — [Source](https://git.dingenskirchen.systems/Dingens/tildee.py) — [Docs](https://tildee.readthedocs.io/en/latest/index.html)
[PyPI](https://pypi.org/project/tildee/) — [Source](https://git.15318.de/dingens/tildee.py) — [Docs](https://tildee.readthedocs.io/en/latest/index.html)

+ 2
- 2
tildee/models.py View File

@ -27,7 +27,7 @@ class TildesTopic:
self.group = self._tree.cssselect("a.site-header-context")[0].text[1:]
self.tags = []
for element in self._tree.cssselect("ul.topic-tags > li > a"):
for element in self._tree.cssselect(".topic-full-tags > a"):
self.tags.append(element.text)
self.id36 = (
@ -112,7 +112,7 @@ class TildesPartialTopic:
:ivar Optional[str] content_html: The text of this topic as rendered by the site, if available.
:ivar int num_votes: The amount of votes this topic has received.
:ivar int num_comments: The amount of comments on this topic.
:ivar List[str] tags: The tags on this topics.
:ivar List[str] tags: The tags on this topic. Can be incomplete or missing if you have the "Show topic tags in listing pages" setting disabled.
:ivar str timestamp: The topic's timestamp."""
def __init__(self, text):


Loading…
Cancel
Save