Skip to content

Commit 91d1235

Browse files
Merge pull request #520 from DLu/spell_check
Results from running codespell
2 parents 89c2ebd + 9f19452 commit 91d1235

File tree

7 files changed

+16
-16
lines changed

7 files changed

+16
-16
lines changed

CHANGELOG.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
### Bugfixes
99
- Fix pprint failures on Windows #413.
1010
- Thoroughly handle 1000 or more publications that are available (or not) according to public access mandates #414.
11-
- Fix errors in `download_mandates_csv` that may occassionally occur for agencies without a policy link #413.
11+
- Fix errors in `download_mandates_csv` that may occasionally occur for agencies without a policy link #413.
1212

1313
## Changes in v1.6.3
1414

@@ -35,7 +35,7 @@
3535

3636
### Features
3737
- Download table of funding agencies as a CSV file with URL to the funding mandates included
38-
- Downlad top-ranking journals in general, under sub-categories and in different languages as a CSV file
38+
- Download top-ranking journals in general, under sub-categories and in different languages as a CSV file
3939

4040
### Bugfixes
4141
- #392
@@ -58,7 +58,7 @@
5858
## Changes in v1.5.0
5959
### Features
6060
- Fetch the public access mandates information from a Scholar profile and mark the publications whether or not they satisfy the open-access mandate.
61-
- Fetch an author's organization identifer from their Scholar profile
61+
- Fetch an author's organization identifier from their Scholar profile
6262
- Search for all authors affiliated with an organization
6363
- Fetch homepage URL from a Scholar profile
6464
### Enhancements

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ This means your code that uses an earlier version of `scholarly` is guaranteed t
5353

5454
## Tests
5555

56-
To check if your installation is succesful, run the tests by executing the `test_module.py` file as:
56+
To check if your installation is successful, run the tests by executing the `test_module.py` file as:
5757

5858
```bash
5959
python3 test_module

scholarly/_proxy_generator.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -109,15 +109,15 @@ def SingleProxy(self, http=None, https=None):
109109
110110
:param http: http proxy address
111111
:type http: string
112-
:param https: https proxy adress
112+
:param https: https proxy address
113113
:type https: string
114114
:returns: whether or not the proxy was set up successfully
115115
:rtype: {bool}
116116
117117
:Example::
118118
119119
>>> pg = ProxyGenerator()
120-
>>> success = pg.SingleProxy(http = <http proxy adress>, https = <https proxy adress>)
120+
>>> success = pg.SingleProxy(http = <http proxy address>, https = <https proxy address>)
121121
"""
122122
self.logger.info("Enabling proxies: http=%s https=%s", http, https)
123123
proxy_works = self._use_proxy(http=http, https=https)
@@ -162,7 +162,7 @@ def _check_proxy(self, proxies) -> bool:
162162
def _refresh_tor_id(self, tor_control_port: int, password: str) -> bool:
163163
"""Refreshes the id by using a new Tor node.
164164
165-
:returns: Whether or not the refresh was succesful
165+
:returns: Whether or not the refresh was successful
166166
:rtype: {bool}
167167
"""
168168
try:
@@ -434,7 +434,7 @@ def _handle_captcha2(self, url):
434434
self.logger.info("Google thinks we are DOSing the captcha.")
435435
raise e
436436
except (WebDriverException) as e:
437-
self.logger.info("Browser seems to be disfunctional - closed by user?")
437+
self.logger.info("Browser seems to be dysfunctional - closed by user?")
438438
raise e
439439
except Exception as e:
440440
# TODO: This exception handler should eventually be removed when
@@ -500,7 +500,7 @@ def _close_session(self):
500500
self.logger.warning("Could not close webdriver cleanly: %s", e)
501501

502502
def _fp_coroutine(self, timeout=1, wait_time=120):
503-
"""A coroutine to continuosly yield free proxies
503+
"""A coroutine to continuously yield free proxies
504504
505505
It takes back the proxies that stopped working and marks it as dirty.
506506
"""

scholarly/_scholarly.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ def search_pubs_custom_url(self, url: str)->_SearchScholarIterator:
428428
parameters in the Advanced Search dialog box and then use the URL here
429429
to programmatically fetch the results.
430430
431-
:param url: custom url to seach for the publication
431+
:param url: custom url to search for the publication
432432
:type url: string
433433
"""
434434
return self.__nav.search_publications(url)

scholarly/author_parser.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ def _get_coauthors_short(self, soup):
222222
def _get_coauthors_long(self, author):
223223
"""Get the long (>20) list of coauthors.
224224
225-
This method fetches the complete list of coauthors bu opening a new
225+
This method fetches the complete list of coauthors by opening a new
226226
page filled with the complete coauthor list.
227227
228228
Note:
@@ -283,7 +283,7 @@ def fill(self, author, sections: list = [], sortby="citedby", publication_limit:
283283
:type sortby: string
284284
:param publication_limit: Select the max number of publications you want you want to fill for the author. Defaults to no limit.
285285
:type publication_limit: int
286-
:returns: The filled object if fill was successfull, False otherwise.
286+
:returns: The filled object if fill was successful, False otherwise.
287287
:rtype: Author or bool
288288
289289
:Example::

scholarly/data_types.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class PublicationSource(str, Enum):
4949
We also have publications that appear in the "author pages" of Google Scholar.
5050
These publications are often a set of publications "merged" together.
5151
52-
The snippet version of these publications conains the title of the publication,
52+
The snippet version of these publications contains the title of the publication,
5353
a subset of the authors, the (sometimes truncated) venue, and the year of the publication
5454
and the number of papers that cite the publication.
5555
@@ -183,7 +183,7 @@ class Publication(TypedDict, total=False):
183183
the "citedby_url" will be a comma-separated list of values.
184184
It is also used to return the "cluster" of all the different versions of the paper.
185185
https://scholar.google.com/scholar?cluster=16766804411681372720&hl=en
186-
:param cites_per_year: a dictionay containing the number of citations per year for this Publication
186+
:param cites_per_year: a dictionary containing the number of citations per year for this Publication
187187
(source: AUTHOR_PUBLICATION_ENTRY)
188188
:param eprint_url: digital version of the Publication. Usually it is a pdf.
189189
:param pub_url: url of the website providing the publication

test_module.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ def test_search_author_multiple_authors(self):
244244
def test_search_author_id(self):
245245
"""
246246
Test the search by author ID. Marie Skłodowska-Curie's ID is
247-
EmD_lTEAAAAJ and these IDs are permenant
247+
EmD_lTEAAAAJ and these IDs are permanent
248248
"""
249249
author = scholarly.search_author_id('EmD_lTEAAAAJ')
250250
self.assertEqual(author['name'], u'Marie Skłodowska-Curie')
@@ -254,7 +254,7 @@ def test_search_author_id(self):
254254
def test_search_author_id_filled(self):
255255
"""
256256
Test the search by author ID. Marie Skłodowska-Curie's ID is
257-
EmD_lTEAAAAJ and these IDs are permenant.
257+
EmD_lTEAAAAJ and these IDs are permanent.
258258
As of July 2020, Marie Skłodowska-Curie has 1963 citations
259259
on Google Scholar and 179 publications
260260
"""

0 commit comments

Comments
 (0)