About 773,000 results
Open links in new tab
  1. How can I get Wikipedia content using Wikipedia's API?

    Aug 25, 2011 · I want to get the first paragraph of a Wikipedia article. What is the API query to do so?

  2. json - Searching Wikipedia using the API - Stack Overflow

    Actually, the Wikipedia JSON API works with a right query only, so I recommend to use the Wikipedia search and crawl the actual article and parse it with Beautiful Soup.

  3. html - How can I get a Wikipedia article's text using Python 3 with ...

    Dec 17, 2018 · There are several Python libraries for using the MediaWiki API that can automate some of nitty gritty details of using it, although the feature set they support can vary. That said, …

  4. Using wikipedia module in python - Stack Overflow

    Sep 1, 2020 · I am using wikipedia module in my python code. I would like to have an input from user to search from wikipedia and get 2 lines from its summary. Since there might be many …

  5. how to import wikipedia in to python code? - Stack Overflow

    Dec 7, 2022 · Pylance is an extension that works alongside Python in Visual Studio Code to provide performant language support. So pylance is not a tool that has any effect on the code …

  6. Python: Check if Wikipedia Article Exists - Stack Overflow

    Jul 24, 2015 · 4 You can use Wikipedia Api for Python and just use the keyword to search the article.It also suggest you the closely related available articles. Check the below example

  7. python - How to get summary for first searches link for wikipedia …

    Dec 3, 2020 · import wikipedia result = wikipedia.summary("python", sentences=3) That is getting too many results but I want summary for first sub result. How can I achieve that?

  8. How to import `wikipedia` module in Python - Stack Overflow

    Feb 7, 2025 · Closed 11 months ago. I am running a Python script which downloads articles from Wikipedia. I have tried to install wikipedia and wikipedia-api but none seem to work.

  9. Extract the first paragraph from a Wikipedia article (Python)

    Dec 16, 2010 · Wikipedia runs a MediaWiki extension that provides exactly this functionality as an API module. TextExtracts implements action=query&prop=extracts with options to return the …

  10. Wikipedia API wrapper for Python returns empty "sections" list

    I am trying to see the table of contents in a wikipedia page using Wikipedia API for Python using this code: >>> import wikipedia >>> ny = wikipedia.page ("New York") &gt...