Skip to content

Commit ebfa5b9

Browse files
authored
Merge pull request #186 from SkiylianSoftware/grammar-fixes
docs(language): fix grammar and wording
2 parents 2ed34b6 + a2c46e1 commit ebfa5b9

File tree

9 files changed

+99
-97
lines changed

9 files changed

+99
-97
lines changed

README.rst

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Python YouTube
22

3-
A Python wrapper around for YouTube Data API V3.
3+
A Python wrapper for the YouTube Data API V3.
44

55
.. image:: https://github.com/sns-sdks/python-youtube/workflows/Test/badge.svg
66
:target: https://github.com/sns-sdks/python-youtube/actions
@@ -21,17 +21,17 @@ THANKS
2121

2222
Inspired by `Python-Twitter <https://github.com/bear/python-twitter>`_.
2323

24-
Thanks a lot for Python-Twitter Developers.
24+
Thanks a lot to Python-Twitter Developers.
2525

2626
============
2727
Introduction
2828
============
2929

30-
Library provides an easy way to use YouTube Data API V3.
30+
This library provides an easy way to use the YouTube Data API V3.
3131

3232
..
3333
34-
Recently, we are working on the new structure for the library. `Read docs <docs/docs/introduce-new-structure.md>`_ to get more detail.
34+
We have recently been working on the new structure for the library. `Read docs <docs/docs/introduce-new-structure.md>`_ to get more detail.
3535

3636
=============
3737
Documentation
@@ -56,21 +56,21 @@ You can install this lib from PyPI:
5656
Using
5757
=====
5858

59-
Now, the library covers all resource methods, including ``insert``,``update`` and so on.
59+
The library covers all resource methods, including ``insert``,``update``, and so on.
6060

61-
Currently, we recommend using ``pyyoutube.Client`` to operate DATA API. It has more features.
61+
We recommend using the ``pyyoutube.Client`` to operate DATA API. It is more modern and feature rich than ``pyyoutube.Api``.
6262

6363
Work with Client
6464
----------------
6565

66-
You can just initialize with an api key:
66+
You can initialize with an api key:
6767

6868
.. code-block:: python
6969
7070
>>> from pyyoutube import Client
7171
>>> client = Client(api_key="your api key")
7272
73-
If you want to get some authorization data. you need to initialize with an access token:
73+
To access additional data that requires authorization, you need to initialize with an access token:
7474

7575
.. code-block:: python
7676
@@ -79,7 +79,7 @@ If you want to get some authorization data. you need to initialize with an acces
7979
8080
You can read the docs to see how to get an access token.
8181

82-
Or you can ask for user to do oauth flow:
82+
Or you can ask for user to do OAuth:
8383

8484
.. code-block:: python
8585
@@ -104,14 +104,14 @@ Get channel detail:
104104
...
105105
}
106106

107-
To get more usage to see our `client docs <docs/docs/usage/work-with-client.md>`_, or `client examples <examples/clients>`_
107+
See the `client docs <docs/docs/usage/work-with-client.md>`_, or `client examples <examples/clients>`_, for additional usage
108108

109109
Work with API
110110
----------------
111111

112112
..
113113
114-
We still support the old way for the sake of compatibility with older users.
114+
For compatibility with older code, we continue to support the old way.
115115

116116
You can just initialize with an api key:
117117

@@ -120,7 +120,7 @@ You can just initialize with an api key:
120120
>>> from pyyoutube import Api
121121
>>> api = Api(api_key="your api key")
122122
123-
If you want to get some authorization data. you need to initialize with an access token:
123+
To access additional data that requires authorization, you need to initialize with an access token:
124124

125125
.. code-block:: python
126126
@@ -129,7 +129,7 @@ If you want to get some authorization data. you need to initialize with an acces
129129
130130
You can read the docs to see how to get an access token.
131131

132-
Or you can ask for user to do oauth flow:
132+
Or you can ask for user to do OAuth flow:
133133

134134
.. code-block:: python
135135
@@ -184,4 +184,4 @@ Get channel detail:
184184
...
185185
}
186186
187-
To get more usage to see our `api docs <docs/docs/usage/work-with-api.md>`_, or `api examples <examples/apis>`_
187+
See the `api docs <docs/docs/usage/work-with-api.md>`_, or `api examples <examples/apis>`_, for additional usage.

docs/docs/authorization.md

Lines changed: 23 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
1-
If you want to get some more data for your channel. You need provide the authorization first.
1+
If you want to get more data for your channel, You need provide the authorization.
22

3-
So, this doc show how to do authorize.
3+
This doc shows how to authorize a client.
44

55
## Prerequisite
66

7-
At the beginning. You must know what is authorization.
7+
To begin with, you must know what authorization is.
88

99
You can see some information at the [Official Documentation](https://developers.google.com/youtube/v3/guides/authentication).
1010

11-
Then you need have an app with the [Access scopes](https://developers.google.com/youtube/v3/guides/auth/server-side-web-apps#identify-access-scopes) approval by YouTube.
11+
You will need to create an app with [Access scope](https://developers.google.com/youtube/v3/guides/auth/server-side-web-apps#identify-access-scopes) approval by YouTube.
1212

13-
If everything goes well. Now let do a simple authorize with `Python-Youtube` library.
13+
Once complete, you will be able to do a simple authorize with `Python-Youtube` library.
1414

1515
## Get authorization url
1616

17-
Suppose now we want to get user's permission to manage his youtube account.
17+
Suppose now we want to get user's permission to manage their YouTube account.
1818

1919
For the `Python-YouTube` library, the default scopes are:
2020

@@ -23,11 +23,11 @@ For the `Python-YouTube` library, the default scopes are:
2323

2424
You can get more scope information at [Access scopes](https://developers.google.com/youtube/v3/guides/auth/server-side-web-apps#identify-access-scopes).
2525

26-
And We set the default redirect url is `https://localhost/`.
26+
(The defailt redirect URI used in PyYoutube is `https://localhost/`)
2727

28-
Now we can begin do the follows step.
28+
We can now perform the following steps:
2929

30-
Initialize the api instance with you app credentials
30+
Initialize the api instance with your app credentials
3131

3232
```
3333
In [1]: from pyyoutube import Client
@@ -40,46 +40,47 @@ Out[3]:
4040
'PyYouTube')
4141
```
4242

43-
Now you get the authorization url, you just need copy the link, and open browser to paste the link, click the enter bar.
43+
Open your broswer of choice and copy the link returned by `get_authorize_url()` into the searchbar.
4444

4545
## Do authorization
4646

47-
If you enter the url. you will see this.
47+
On entering the URL, you will see the following:
4848

4949
![auth-1-chose-account](images/auth-1-chose-account.png)
5050

51-
Now you need to chose or enter you google account with youtube.
51+
Select the account to authorize your app to read data from.
5252

53-
If your app have not got the approval from youtube. You will get an warning from youtube. If you have been approved, you will
54-
see the next image show directly.
53+
If your app is not approved for use, you will recieve a warning. You can prevent this by adding your chosen Google account as a test member on your created OAuth application.
54+
Otherwise, you will see the following:
5555

5656
![auth-2-not-approval](images/auth-2-not-approval.png)
5757

58-
For now, you need to click the button ``Advanced``, then click the ``Go to Python-YouTube (unsafe)``.
58+
You will need to click ``Advanced``, then click the ``Go to Python-YouTube (unsafe)``.
5959

6060
![auth-3-advanced](images/auth-3-advanced.png)
6161

62-
Now you can get a window to give permissions.
62+
You should now see a window to select permissions granted to the application.
6363

6464
![auth-4-allow-permission](images/auth-4-allow-permission.png)
6565

66-
click the blue button `allow` to give the permission.
66+
Click `allow` to give the permission.
6767

68-
Then you will get a Connection Error, don't worry. This just because we set the redirect link to `localhost`.
68+
You will see a Connection Error, as the link is redirecting to `localhost`. This is standard behaviour, so don't close the window or return to a previous page!
6969

7070
## Retrieve access token
7171

72-
Now you need to copy the full url in the browser address bar. Then back to you console.
72+
Copy the full redicted URL from the browser address bar, and return to your original console.
7373

7474
```
75-
In [4]: token = cli.generate_access_token(authorization_response="the whole url")
75+
In [4]: token = cli.generate_access_token(authorization_response="$redirect_url")
7676
7777
In [5]: token
7878
Out[5]: AccessToken(access_token='access token', expires_in=3600, token_type='Bearer')
7979
```
8080

81+
(Replace `$redirect_url` with the URL you copied)
8182

82-
now you have got your access token to visit your self data.
83+
You now have an access token to view your account data.
8384

8485

8586
## Get your data
@@ -97,4 +98,4 @@ Out[7]:
9798

9899
!!! note "Tips"
99100

100-
If you have some confuse. you need to read the [Authorize Requests](https://developers.google.com/youtube/v3/guides/authentication) first.
101+
If you are confused, it is beneficial to read the [Authorize Requests](https://developers.google.com/youtube/v3/guides/authentication) guide first.

docs/docs/getting_started.md

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,44 @@
1-
This doc is a simple tutorial to show how to use this library to get data from YouTube DATA API.
1+
This document is a simple tutorial to show how to use this library to get data from YouTube data API.
22

3-
You can get the whole description for YouTube API at [YouTube API Reference](https://developers.google.com/youtube/v3/docs/).
3+
You can get the whole description for the YouTube API at [YouTube API Reference](https://developers.google.com/youtube/v3/docs/).
44

55
## Prerequisite
66

7-
At the beginning. You need to create a [Google Project](https://console.cloud.google.com) by your google account.
7+
To begin, you need to create a [Google Project](https://console.cloud.google.com) with your google account.
88

9-
Every new account has 12 project to cost.
9+
Every new account has a free quota of 12 projects.
1010

1111
## Create your project
1212

13-
Click the `Select a project-> NEW PROJECT` to create a new project to use our library.
13+
Click `Select a project-> NEW PROJECT` to create a new project to use our library.
1414

15-
Fill the basic info to finish created.
15+
Fill in the basic info and create the project.
1616

1717
![gt-create-app-1](images/gt-create-app-1.png)
1818

1919
## Enable YouTube DATA API service
2020

21-
Once the project created, the browser will redirect project home page.
21+
Once the project created, the browser will redirect you to the project home page.
2222

23-
Then click the `≡≡` symbol on the left top. Chose the `APIs & Services` tab.
23+
Click the `≡≡` symbol on the top left and select the `APIs & Services` tab.
2424

25-
You will see follow info.
25+
You will see following info:
2626

2727
![gt-create-app-2](images/gt-create-app-2.png)
2828

29-
Click the `+ ENABLE APIS AND SERVICES` symbol. And input `YouTube DATA API` to search.
29+
Click the `+ ENABLE APIS AND SERVICES` symbol, and input `YouTube DATA API` to search.
3030

3131
![gt-create-app-3](images/gt-create-app-3.png)
3232

33-
Then chose the ``YouTube DATA API`` item.
33+
Chose the ``YouTube DATA API`` item.
3434

3535
![gt-create-app-4](images/gt-create-app-4.png)
3636

37-
Then click the `ENABLE` blue button. Now the service has been activated.
37+
Then click the `ENABLE` blue button. After a short period where the API is added to your project, the service will be activated.
3838

3939
## Create credentials
4040

41-
To use this API, you may need credentials. Click 'Create credentials' to get started.
41+
To use this API, you need credentials. Click `Create credentials` to get started.
4242

4343
![gt-create-app-5](images/gt-create-app-5.png)
4444

@@ -50,20 +50,20 @@ Then click the blue button `What credentials do I need?` to create.
5050

5151
![gt-create-app-6](images/gt-create-app-6.png)
5252

53-
Now you have generated one api key.
53+
You have now generated an api key.
5454

55-
Use this key. You can retrieve public data for YouTube data by our library
55+
Using this key, you can retrieve public YouTube data with our library
5656

5757
```python
5858
from pyyoutube import Client
5959

6060
cli = Client(api_key="your api key")
6161
```
6262

63-
If you want to get some examples to see, check out the [examples](https://github.com/sns-sdks/python-youtube/tree/master/examples).
63+
Check out the [examples](https://github.com/sns-sdks/python-youtube/tree/master/examples) directory for some examples of using the library.
6464

65-
If you have an opens source application using python-youtube, send me a link, and I am very happy to add a link to it here.
65+
If you have an open source application using python-youtube, send me a link. I am very happy to add a link to it here.
6666

67-
But if you want to get user data by OAuth. You need create the credential for ``OAuth client ID``.
67+
If you want to get user data by OAuth. You need create the credential for ``OAuth client ID``.
6868

69-
And get more info at next page for [Authorization](authorization.md).
69+
You will find more information on OAth at the [Authorization](authorization.md) page.

docs/docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Use the API to upload videos, manage playlists and subscriptions, update channel
1313

1414
This library provides a Python interface for the [YouTube DATA API](https://developers.google.com/youtube/v3).
1515

16-
Library could work on Python 3.6+.
16+
This library has works on all Python versions 3.6 and newer.
1717

1818
!!! tip "Tips"
1919

docs/docs/installation.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ $ pip install --upgrade python-youtube
1717
```
1818

1919

20-
Also, you can build this library from source code
20+
You can also build this library from source
2121

2222
```shell
2323
$ git clone https://github.com/sns-sdks/python-youtube.git
@@ -28,8 +28,8 @@ $ make build
2828

2929
## Testing
3030

31-
If you have been installing the requirements use ``make env``.
32-
You can use following command to test the code
31+
Run `make env` after you have installed the project requirements.
32+
Once completed, you can run code tests with
3333

3434
```shell
3535
$ make tests-html

docs/docs/introduce-new-structure.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ This doc will show you the new api structure for this library.
22

33
## Brief
44

5-
To make the package easier to maintain and easy to use. We are shifted to using classes for different YouTube resources in an easier, higher-level programming experience.
5+
To make the package easier to maintain and easy to use. We have shifted to using classes for different YouTube resources in an easier, higher-level, programming experience.
66

77
![structure-uml](images/structure-uml.png)
88

99

10-
In this structure, every resource will have self class. And to operate with YouTube API.
10+
In this structure, every resource has a self class.
1111

1212
## Simple usage
1313

0 commit comments

Comments
 (0)