Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [wikipedia]

Wikipedia is a free online encyclopedia that allows anyone to edit articles.

Filter by
Sorted by
Tagged with
0 votes
0 answers
48 views

WikiGameKillerFX.java - a JavaFX GUI program for solving the Wiki Game instances

I have this GitHub repository. In Wiki Game, players agree on random source and target articles, and attempt to navigate from the source to the target using least number of links. If there is a tie, ...
coderodde's user avatar
  • 28.4k
1 vote
0 answers
63 views

WikiGameKiller.java - a program for solving Wiki game instances

Intro I have this GitHub repository. Basically, it is a command-line utility for searching automatically for shortest link paths in the Wikipedia article graph. The game in question is sometimes ...
coderodde's user avatar
  • 28.4k
4 votes
1 answer
85 views

Java classes for downloading all in-coming/out-going links of an article in the Wikipedia article graph

(The entire project is in GitHub.) Introduction This project provides facilities for generating in-coming or out-going links in a given Wikipedia page. Code ...
coderodde's user avatar
  • 28.4k
1 vote
2 answers
77 views

Changing every link on page, in fastest way possible

I have created a script (mediawiki gadget), which iterates over every redlink in a rendered wiki-page (that is, over every href with class new, signifying an ...
philo math's user avatar
1 vote
1 answer
68 views

Count the frequency of n-grams in a random Wikipedia corpus

This code counts the frequency of n-grams in a random Wikipedia corpus, as of now, it downloads everything, than performs all the counting. In your opinion is there a way to perform downloading and ...
Caridorc's user avatar
  • 27.5k
1 vote
1 answer
177 views

Finding a path from one wikipedia page to another using semantic similarity of links (Spacy)

I've just picked coding back up for the first time in a long time, so I understand if your eyes bleed looking at this code. It all works, but I'd be grateful for any tips (how to improve the python ...
Will's user avatar
  • 111
5 votes
5 answers
286 views

Upgrade script for MediaWiki website with one external addon (wave 1)

I have a MediaWiki 1.33.0 website with only one external addon installed (external extension), which is ContactPage. I have created the following script with that logic: if there is an upgrade to ...
user avatar
31 votes
6 answers
4k views

Python web-scraper to download table of transistor counts from Wikipedia

I have been looking for answers for how to easily scrape data from Wikipedia into a CSV file with Beautiful Soup. This is the code so far. Is there an easier way to do it? ...
Sofelia's user avatar
  • 311
3 votes
1 answer
110 views

Wiki Link Mapper — A webcrawler which crawls links recursively and prints them into a graph

I would like some suggestions on how to make it better and also if any features that i should add to this Script. I am using beautifulsoup,requests for scraping and networkx for plotting the graph. ...
Hardik Mehta's user avatar
4 votes
2 answers
158 views

Finding Wikipedia articles with specific types of user page links

...
Retro's user avatar
  • 45
5 votes
1 answer
357 views

Wikipedia Random Page in Category Bot

I recently wrote a Python script to generate a random page within a Wikipedia category and its subcategories: ...
Garrett Credi's user avatar
4 votes
1 answer
138 views

Java - Downloading Wikipedia Articles

This is my first experiment that uses a network API and connects to the internet. I tried to write a program that gives you an article of wikipedia directly by typing the name. You can get an ...
Dexter Thorn's user avatar
  • 2,174
4 votes
0 answers
54 views

Showing a Wikipedia article's changes as Git commits

I created a small-ish NodeJS script which takes as argument the name of a Wikipedia article (and optionally a Wikipedia edition, "en" is default) and creates a Git repository with each change made to ...
Bruno Pérel's user avatar
7 votes
2 answers
337 views

Degrees of Wikipedia

Here is my attempt on implementing "Degrees of Wikipedia" (much faster version can be seen at degreesofwikipedia.com.It's basically an algorithm which tries to connect two unrelated Wikipedia pages by ...
Liberul's user avatar
  • 173
5 votes
1 answer
942 views

Small program to download wikipedia articles to pdf

I made a small app to download wikipedia articles (and optionally those that it links to) as PDFs to take on the go. I'd eventually like to do a text-to-speech option and save the article as an mp3, ...
Matt's user avatar
  • 339
3 votes
1 answer
153 views

Reaching the philosophy wiki page - Follow Up

This is a follow up to my original post: I've written a class that will start from a random Wikipedia page, then choose the first link in the main body, and then navigate following the links until ...
loremIpsum1771's user avatar
3 votes
1 answer
138 views

Reaching the philosophy wiki page

I've written a class that will start from a random Wikipedia page, then choose the first link in the main body, and then navigate following the links until it finds the Philosophy page. When I run the ...
loremIpsum1771's user avatar
2 votes
2 answers
119 views

Reading a file representing word frequencies in Wikipedia, for clustering analysis

I am writing a system that will run Kmeans to determine the most used words in Wikipedia. I do this by building a core set with streaming data. Wikipedia is 50TB but after a year of processing I was ...
Tony Tannous's user avatar
8 votes
2 answers
2k views

Parsing Wikipedia table with Python

I am new to Python and recently started exploring web crawling. The code below parses the S&P 500 List Wikipedia page and writes the data of a specific table into a database. While this script is ...
DatenBergwerker's user avatar
5 votes
1 answer
448 views

Finding shortest paths in a Wikipedia article graph using Java

(See also Finding shortest paths in a Wikipedia article graph using Java - second attempt.) I have this sort of a web crawler that asks for two (English) Wikipedia article titles (the source and the ...
coderodde's user avatar
  • 28.4k
0 votes
1 answer
2k views

Wikipedia search using the JSON API

What could I do better in my code or logic? Wikipedia Search ...
Michael Alves's user avatar
2 votes
1 answer
46 views

Prepending textbox to Wikipedia thumbnail picture

I'm working on small Javascript code that adds text from a clicked-href to the top right corner of the Wikipedia page. So for example, if I click the "Jamaican" link in Sly and Robbie, a textbox would ...
theGreenCabbage's user avatar
2 votes
1 answer
556 views

HTML for Wikipedia infoboxes

Wikipedia uses Infoboxes for many of its articles. They contain basic information in a structured form about the topic. Take for example the articles about Stack Overflow and donkeys. Their structure ...
Pyfisch's user avatar
  • 661
5 votes
1 answer
3k views

Parsing Wikipedia data in Python

I'm new to Python and would like some advice or guidance moving forward. I'm trying to parse Wikipedia data into something uniform that I can put into a database. I've looked at wiki parsers but from ...
Justin808's user avatar
  • 775
3 votes
1 answer
314 views

Simple word translator taking advantage of Wikipedia

This is my first Clojure script (simple word translator based on Wikipedia), and I guess there are things which could be simplified / done more idiomatic way. Specifically, I wonder if ...
ts01's user avatar
  • 228