Giter Site home page Giter Site logo

talkpage_scraper's Introduction

talkpage_scraper

This file contains code that should scrape controversial talk pages using mwapi and mwchatter.

Currently, errors are being thrown when parsing the talk pages for the following articles:

-1919 World Series

-Adventism

-Andrew Dice Clay

-Black hole information paradox

-Blood type

-Caligula

-Charles de Gaulle

-Domestic violence

-Environmental impact of hydraulic fracturing

-File sharing

-Game of Thrones

-Genocide

-Genocide denial

-Graeco-Armenian

-Hispanic

-Imperium (Warhammer 40,000)

-Jacques Chirac

-Jim Thorpe

-Jury duty

-LGBT

-Logging

-Mahmoud Ahmadinejac

-Margaret Cho

-Michael Vick

-Neoliberalism

-Nero

-Olivia Newton-John

-Panama Canal Zone

-Patriot Act

-Smart meter

-Sting

-Tony Blair

The error is that someone has posted without a username. This shouldn't cause an error, but seems to for some reason. The error is coming from mwchatter, although may be due to something happening in earlier code.

I have updated the Talk Page Scraper to show examples of a parsed talk page, and a raw talk page for comparison purposes. I have also added a file called Test_Parse that simply prints out a parsed talk page, in case something strange is happening when talk pages are printed into the csv in the final step. It doesn't appear that this is the case, but the two talk pages can be compared here.

It appears that further parsing will be needed for legibility reasons.

talkpage_scraper's People

Contributors

ewhit51 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.