Skip to content

Commit 6a42054

Browse files
committed
Revert "Add Wikipedia data source: script and README documentation"
This reverts commit 5da8ea2.
1 parent 3a34da0 commit 6a42054

File tree

1 file changed

+0
-32
lines changed

1 file changed

+0
-32
lines changed

sources.md

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -174,35 +174,3 @@ adjust video parameters, and obtain search results.
174174
- API key required
175175
- Query limit: depends on the type and number of requests
176176
- Data available through JSON format
177-
178-
## 📖 Wikipedia Data Source
179-
180-
Quantifying now supports fetching data from Wikipedia as an additional source alongside GitHub and Google Custom Search.
181-
182-
### Available Statistics
183-
184-
- **Number of articles** – Total articles on Wikipedia.
185-
- **Number of pages** – Total pages, including non-article pages.
186-
- **Number of edits** – Total edits across Wikipedia.
187-
- **Number of users** – Total registered users.
188-
- **Number of images** – Total uploaded images.
189-
- **Keyword-based counts** – Number of articles referencing specific Creative Commons licenses or keywords.
190-
191-
### Example Usage
192-
193-
```python
194-
from scripts.wikipedia_fetch import get_site_statistics, search_articles_count, fetch_cc_related_statistics
195-
196-
# General Wikipedia statistics
197-
stats = get_site_statistics()
198-
print("Wikipedia Site Stats:", stats)
199-
200-
# Count articles containing a specific keyword
201-
cc_articles = search_articles_count("Creative Commons")
202-
print("Articles with 'Creative Commons':", cc_articles)
203-
204-
# Fetch counts for various Creative Commons licenses
205-
cc_stats = fetch_cc_related_statistics()
206-
for license_name, count in cc_stats.items():
207-
print(f"{license_name}: {count}")
208-

0 commit comments

Comments
 (0)