Skip to content

Commit 27db760

Browse files
Improved docs related to known issues. Catch cases more consistently.
1 parent 23935ff commit 27db760

3 files changed

Lines changed: 68 additions & 17 deletions

File tree

README.md

Lines changed: 61 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,24 @@
66
![Version](https://img.shields.io/badge/version-1.1.0-blue)
77

88
## Table of Contents
9-
- [Text and Data Mining (TDM)](#text-and-data-mining-tdm)
10-
- [Wiley TDM Client](#wiley-tdm-client)
11-
- [Features](#features)
12-
- [Requirements](#requirements)
13-
- [Quick Start](#quick-start)
14-
- [Environment Variables](#environment-variables)
15-
- [Install](#install)
16-
- [Basic Usage](#basic-usage)
17-
- [Troubleshooting](#troubleshooting)
18-
- [Installation](#installation)
19-
- [Access denied](#access-denied)
20-
- [Contributing](#contributing)
21-
- [License](#license)
9+
- [wiley-tdm](#wiley-tdm)
10+
- [Table of Contents](#table-of-contents)
11+
- [Text and Data Mining (TDM)](#text-and-data-mining-tdm)
12+
- [Wiley TDM Client](#wiley-tdm-client)
13+
- [Features](#features)
14+
- [Requirements](#requirements)
15+
- [Quick Start](#quick-start)
16+
- [Environment Variables](#environment-variables)
17+
- [Install](#install)
18+
- [Basic Usage](#basic-usage)
19+
- [Known Limitations](#known-limitations)
20+
- [Access is IP address based only.](#access-is-ip-address-based-only)
21+
- [SICI DOIs are not supported.](#sici-dois-are-not-supported)
22+
- [Troubleshooting](#troubleshooting)
23+
- [Installation](#installation)
24+
- [Access denied](#access-denied)
25+
- [Contributing](#contributing)
26+
- [License](#license)
2227

2328
## Text and Data Mining (TDM)
2429

@@ -59,7 +64,7 @@ You will require the following:
5964

6065
* A [Python 3.10+](https://www.python.org/downloads/) environment
6166
* Python dependencies:
62-
* [requests](https://requests.readthedocs.io/) (≥2.32.0)
67+
* [requests](https://requests.readthedocs.io/) (≥2.33.1)
6368
* A [Wiley Online Library](https://onlinelibrary.wiley.com/) (WOL) Account
6469
* A TDM API Token, available from the WOL [TDM resources page](https://onlinelibrary.wiley.com/library-info/resources/text-and-datamining) using your WOL Account
6570
* Access to the content you wish to download
@@ -125,11 +130,42 @@ tdm.download_pdfs("dois.txt")
125130

126131
See more [examples](examples/).
127132

133+
## Known Limitations
134+
135+
There are two known limitations of the TDM Client (/TDM API)
136+
137+
### Access is IP address based only.
138+
139+
The following scenarios are not supported:
140+
* Your WOL customer account doesn't have IP based access configured. (e.g. SSO only)
141+
* You do have IP based access but you are on a different network or subnet to the one configured. (e.g. Off campus)
142+
143+
Ask your WOL Account Admin to confirm your access model. See [Troubleshooting]([#Troubleshooting) for further assistance.
144+
145+
Potential Workarounds:
146+
* Return to campus.
147+
* Manually download entitled content on WOL, via https://onlinelibrary.wiley.com/doi/epdf/{doi}
148+
* Request IP based access via your WOL Account Admin.
149+
* Request feed-based (non‑API‑based) content dissemination for TDM with Wiley's Digital Licensing team.
150+
151+
### SICI DOIs are not supported.
152+
153+
The TDM APIs cannot support [SICI](https://en.wikipedia.org/wiki/Serial_Item_and_Contribution_Identifier) DOIs. For example:
154+
* 10.1002/1096-9861(20010212)430:3<283::AID-CNE1031>3.0.CO;2-V
155+
156+
Potential Workarounds:
157+
* Manually download entitled content on WOL, via https://onlinelibrary.wiley.com/doi/epdf/{doi}
158+
128159
## Troubleshooting
129160

130-
In most troubleshooting scenarios it can be helpful to generate a report:
161+
In most troubleshooting scenarios it can be helpful to enable logging and generate a report:
131162

132163
```python
164+
# Enable logging
165+
logging.basicConfig(
166+
level=logging.INFO, format="%(asctime)s - %(levelname)s - %(message)s"
167+
)
168+
133169
# Save the download results to a CSV file: 'results.csv'
134170
tdm.save_results()
135171
```
@@ -139,11 +175,20 @@ tdm.save_results()
139175
If you encounter installation issues:
140176

141177
```bash
142-
# Ensure you're using Python 3.10+
178+
# Ensure you are in your Python Virtual Environment
179+
source ./venv/bin/activate
180+
181+
# Ensure you are using Python 3.10+
143182
python3 --version
144183

145184
# Update pip to latest version
146185
python3 -m pip install --upgrade pip
186+
187+
# Ensure you are using the latest TDM Client
188+
pip show wiley-tdm
189+
190+
# Update TDM Client to the latest version
191+
pip install --upgrade wiley-tdm
147192
```
148193

149194
Alternatively, try installing a fresh [Virtual Environment](#install).

pyproject.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,12 @@ classifiers = [
2828
"Topic :: Utilities",
2929
]
3030

31+
[project.urls]
32+
Homepage = "https://github.com/WileyLabs/tdm-client"
33+
Changelog = "https://github.com/WileyLabs/tdm-client/blob/main/CHANGELOG.md"
34+
Repository = "https://github.com/WileyLabs/tdm-client"
35+
Issues = " https://github.com/WileyLabs/tdm-client/issues"
36+
3137
[project.optional-dependencies]
3238
lint = [
3339
"black>=26.3.1",

src/wiley_tdm/doi_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class DOIUtils:
3030

3131
# DOI Configuration
3232
DOI_REGEX: Final[Pattern] = re.compile(
33-
r"^10.\d{4,9}/[-._;()/:<>\[\]A-Z0-9]+$", re.IGNORECASE
33+
r"^10.\d{4,9}/[-._;()+/:<>\[\]A-Z0-9]+$", re.IGNORECASE
3434
)
3535

3636
# DOI.org API Configuration

0 commit comments

Comments
 (0)