Skip to content

Commit

Permalink
Fix typos in documentation
Browse files Browse the repository at this point in the history
* feat(doc): 📝 adding evaluation results

* feat(doc): 🚀 Documentation Update. Added Examples, documented new features
  • Loading branch information
AndyTheFactory committed Jan 17, 2024
1 parent 7aa382a commit 677b978
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,8 @@ source venv/bin/activate
# Upgrade pip (very important!)
pip install --upgrade pip

# Install Newspaper3k in editable mode
pip install -e '.[dev]'
# Install Newspaper4k in editable mode
pip install -e '.'
```

Last, install the pre-commit hooks with:
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ import newspaper

cnn_paper = newspaper.build('http://cnn.com', number_threads=3)
print(cnn_paper.category_urls())

# ['https://cnn.com', 'https://money.cnn.com', 'https://arabic.cnn.com',
# 'https://cnnespanol.cnn.com', 'http://edition.cnn.com',
# 'https://edition.cnn.com', 'https://us.cnn.com', 'https://www.cnn.com']
Expand All @@ -95,6 +96,7 @@ print(article_urls[:3])
# 'https://arabic.cnn.com/middle-east/video/2023/10/30/v146619-sotu-sullivan-hostage-negotiations',
# 'https://arabic.cnn.com/middle-east/article/2023/10/29/norwegian-pm-israel-gaza']


article = cnn_paper.articles[0]
article.download()
article.parse()
Expand Down

0 comments on commit 677b978

Please sign in to comment.