Skip to content

Commit 88f60cb

Browse files
committed
Update docs
1 parent d5df976 commit 88f60cb

File tree

7 files changed

+25
-37
lines changed

7 files changed

+25
-37
lines changed

docs/source/api/objects.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ Here is a list of all API objects.
88
.. autoclass:: phub.core.Client
99
:members:
1010
:private-members:
11-
:special-members: __new__
1211

1312
.. autoclass:: phub.objects.Account
1413
:members:
@@ -21,7 +20,6 @@ Here is a list of all API objects.
2120
.. autoclass:: phub.objects.Like
2221
:members:
2322
:private-members:
24-
:special-members: __len__, __getitem__
2523

2624
.. autoclass:: phub.objects.FeedItem
2725
:members:

docs/source/features/account.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ Here is an example on how to view your account history.
8080
8181
history_length = 40
8282
83-
for i, video in enumerate(client.account.watched):
84-
print(f'{i}. [{video.key}] "{video.title}"')
83+
for video in client.account.watched:
84+
print(f'Video {video.key} - "{video.title}"')
8585
8686
Accessing the feed
8787
------------------

docs/source/features/search.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ For instance, this query will be restrained to search in the French category.
3636
...,
3737
category = 'french',
3838
exclude_category = ('bbw', 'german'),
39-
production = 'homemade'
39+
production = 'homemade',
40+
...
4041
)
4142
4243
Using queries
@@ -85,17 +86,16 @@ It is faster and more reliable, but provides less information.
8586
Refreshing queries
8687
------------------
8788

88-
As of right now, queries cannot be refreshed. Instead, you need
89-
to initialise a new query.
89+
Queries cannot be refreshed. Instead, you need to initialise a new query.
9090

9191
.. code-block:: python
9292
9393
# Check search results once every 10 min
9494
9595
args = dict(
9696
query = 'my query',
97-
category = 'french'
98-
# Other parameters if you want
97+
category = 'french',
98+
...
9999
)
100100
101101
while 1:

docs/source/features/user.rst

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,17 @@ objects.
1515

1616
.. code-block:: python
1717
18-
user = ...
19-
20-
user.name # The username
21-
user.url # The link to the user page
22-
user.bio # The user public biography (or None)
23-
user.info # User data (relationship, orientation, etc.)
24-
# Warning: Changing the client language affect this.
25-
user.avatar # The user avatar as an phub.Image object.
26-
user.videos # Query containing the videos posted by the user.
27-
user.type # The type of the user (model, channels, pornstar, users, etc.)
28-
29-
# Only if the user is a pornstar
30-
user.uploads # Pornstar personnal uploads
18+
user = client.get(...)
19+
20+
user.name # The username
21+
user.url # The link to the user page
22+
user.bio # The user public biography (or None)
23+
user.info # User data (relationship, orientation, etc.)
24+
# Warning: Changing the client language affect this.
25+
user.avatar # The user avatar as an phub.Image object.
26+
user.videos # Query containing the videos posted by the user.
27+
user.type # The type of the user (model, channels, pornstar, users, etc.)
28+
user.uploads # if user is a Pornstar, stores the personal uploads
3129
3230
Refreshing User data
3331
--------------------

docs/source/guides/pkg-usage.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ Each ``dictify`` method can take as argument a :py:class:`list[str]` of keys,
164164
if you want to avoid fetching specific things.
165165

166166
Below is a list of all serializable PHUB objects, along with their keys.
167-
PHUB objects are keys that redirect to a PHUB object.
167+
"PHUB objects" are keys that redirect to a PHUB object.
168168

169169
.. list-table:: Serializable objects
170170
:header-rows: 1
@@ -201,8 +201,8 @@ PHUB objects are keys that redirect to a PHUB object.
201201
- ``user``, ``header``, ``item_type``
202202
- /
203203

204-
By default, recursive keys will appear as ``repr`` strings, unless
205-
you allow repulsiveness with ``object.dictify(recursive = True)``.
204+
By default, PHUB object keys will appear as ``repr`` strings, unless
205+
you allow it with ``object.dictify(recursive = True)``.
206206

207207
.. warning::
208208

docs/source/guides/quickstart.rst

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,23 +14,17 @@ PHUB uses the following dependencies:
1414
.. _click: https://pypi.org/project/click/
1515
.. _ffmpeg-progress-yield: https://pypi.org/project/ffmpeg-progress-yield/
1616

17-
- Installing the lastest stable release (python 3.11 or higher):
17+
- Installing the lastest stable release (python 3.9 or higher):
1818

1919
.. code-block:: bash
2020
2121
pip install --upgrade phub
2222
23-
- Installing the latest unstable updates (python 3.11 or higher):
23+
- Installing the latest unstable updates (python 3.9 or higher):
2424

2525
.. code-block:: bash
2626
2727
pip install --upgrade git+https://github.com/Egsagon/PHUB.git
2828
29-
- There also is a python 3.10 branch. Beware it might not be updated as often.
30-
31-
.. code-block:: bash
32-
33-
pip install --upgrade git+https://github.com/Egsagon/PHUB.git@py-3.10
34-
3529
You can use PHUB as a :doc:`CLI </guides/cli-usage>`,
3630
a :doc:`GUI </guides/gui-usage>` or a :doc:`Python package </guides/pkg-usage>`.

docs/source/index.rst

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
PHUB documentation
22
==================
33

4-
PHUB is an hybrid API for Pornhub. It is able to communicate with Pornhub
5-
using both web-scraping and wrapping the Pornhub's HubTraffic API. It is
6-
able to access most used or useful PH features, like video searching,
7-
accessing account features, and more like video downloading.
4+
PHUB is an easy-to-use API wrapper for Pornhub. It can access most used or useful
5+
PH features, such as video searching, account features, video downloading, and more.
86

97
.. image:: assets/logo.svg
108
:align: center

0 commit comments

Comments
 (0)