Skip to main content

Python library for navigating the world wide web

Project description

CyberSpace

Wikipedia

InfoBox

from cyberspace import Wikipedia
w = Wikipedia(rate_limit_wait_seconds=0.1)
result = w.search('steve wozniak')[0]
print(result)

output

{
  "title_1": "Steve Wozniak",
  "unknown_row_1": {
    "texts": [
      "Wozniak in 2018"
    ],
    "links": [
      {
        "url": "/wiki/File:Steve_Wozniak,_November_2018.jpg"
      }
    ]
  },
  "Born": {
    "texts": [
      "Stephen Gary Wozniak[1](p18) (1950-08-11) August 11, 1950 (age 68)San Jose, California, U.S."
    ],
    "links": [
      {
        "url": "#cite_note-iWoz-1",
        "text": "[1]"
      },
      {
        "title": "San Jose, California",
        "url": "/wiki/San_Jose,_California",
        "text": "San Jose"
      },
      {
        "title": "California",
        "url": "/wiki/California",
        "text": "California"
      }
    ]
  },
  ...

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cyberspace-2022.2.12.tar.gz (20.8 kB view hashes)

Uploaded Source

Built Distribution

cyberspace-2022.2.12-py3-none-any.whl (29.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page