Skip to main content

Wikipedia Scraper

Create an instance of the PyScrappy library to interact with the class WikipediaScrapper

Helps in scrapping data from Wikipedia

1. Paragraph2. Header3. Text
  • Type#


    class

  • Note#


    Create an object of this class to procced further.

  • Example#


    obj = PyScrappy.WikipediaScrapper()

Wikipedia#

  • para_scrapper()#

    Helps in scraping paragraphs from Wikipedia.

    Parameters#


    word: Enter the desired keyword
    Type: str

    Note#


    Make sure that the information of the desired word is available in Wikipedia.

    Example#


    obj = PyScrappy.WikipediaScrapper()obj.para_scrapper('any_keyword')
  • header_scrapper()#

    Helps in scraping headers from Wikipedia.

    Parameters#


    word: Enter the desired keyword
    Type: str

    Note#


    Make sure that the information of the desired word is available in Wikipedia.

    Example#


    obj = PyScrappy.WikipediaScrapper()obj.header_scrapper('any_keyword')
  • header_scrapper()#

    Helps in scraping text from Wikipedia.

    Parameters#


    word: Enter the desired keyword
    Type: str

    Note#


    Make sure that the information of the desired word is available in Wikipedia.

    Example#


    obj = PyScrappy.WikipediaScrapper()obj.text_scrapper('any_keyword')