r/dailyprogrammer • u/Coder_d00d 1 3 • Dec 12 '14
[2014-12-12] Challenge #192 [Hard] Project: Web mining
Description:
So I was working on coming up with a specific challenge that had us some how using an API or custom code to mine information off a specific website and so forth.
I found myself spending lots of time researching the "design" for the challenge. You had to implement it. It occured to me that one of the biggest "challenges" in software and programming is coming up with a "design".
So for this challenge you will be given lots of room to do what you want. I will just give you a problem to solve. How and what you do depends on what you pick. This is more a project based challenge.
Requirements
You must get data from a website. Any data. Game websites. Wikipedia. Reddit. Twitter. Census or similar data.
You read in this data and generate an analysis of it. For example maybe you get player statistics from a sport like Soccer, Baseball, whatever. And find the top players or top statistics. Or you find a trend like age of players over 5 years of how they perform better or worse.
Display or show your results. Can be text. Can be graphical. If you need ideas - check out http://www.reddit.com/r/dataisbeautiful great examples of how people mine data for showing some cool relationships.
2
u/ddaypunk06 Dec 12 '14
I've been working on a dashboard for league of legends data using their api on and off for a few months. Django is the framework. Interested to see how this thread turns out.
11
u/PalestraRattus Dec 13 '14
Nothing fancy, just wanted to show the concept in the most basic form. This program will each minute scan and record the front page of reddit. Now it doesn't actually do anything important...it just adds up the total front page karma, and determines the number of even or odd karma posts. It then logs this on the off chance you wanted to make an even more silly program down the line to track long-term frontpage karma trends.
C# - Form wrapper (Sample: http://i.imgur.com/ogpIjlP.png)
4
u/dohaqatar7 1 1 Dec 13 '14
Java
This doesn't do anything special yet. It just reads an accounts skills from the Runescape highscores and prints it. I am very open to suggestions on what I should do with this data.
2
u/Holyshatots Dec 13 '14
This is something a wrote up a little while ago. It just takes 1000 of the most recent reddit posts from a specified subreddit and pulls the most used words while pulling out useless and common words.
2
u/Garth5689 Dec 15 '14
Something that I have done previously, but fits this challenge well:
Python 3, Dota 2 Match Betting Analysis
http://nbviewer.ipython.org/github/garth5689/pyd2l/blob/master/PyD2L%20Match%20Analysis.ipynb
2
u/binaryblade Dec 18 '14
golang, alittle on the late side, but I wrote a scraper which scans a domain and outputs a dot format link graph for it
Here is an example
it only outputs those nodes which have connections to others, this way it trims outside links and resources with very rapidly inflate the graph
1
u/G33kDude 1 1 Dec 12 '14 edited Dec 12 '14
How is this different from the [Easy] challenge from 18 days go? "Webscraping Sentiments"
Edit: Other than the wider available range of websites to scrape and which data to scrape. In theory, that'd make this one potentially easier for lazy people.
3
u/Super_Cyan Dec 13 '14
Python
My amazingly slow,(seriously takes me between 3 - 5 minutes each run) Reddit front page analyzer. It uses PRAW to determine the top subreddits and domains by number of posts, the average and highest link and comment karma of the submitters.
Output
3
u/-Kookaburra- Dec 19 '14
I created a Java app that created an image from every post a blog ever made and assigns a color for the type of post ended up wit hsome really awesome looking stuff Below is a link to the tumblr post, link
2
u/kur0saki Dec 13 '14 edited Dec 13 '14
Topic: statistics of MTG cards across the latest major events in a specific format. Language: Go, once again.
Thank you for your data, mtgtop8.com!
Sample output (I left-aligned the output for reddit to get the correct formatting here):
I found some fun in this and probably extend the tool some more, e.g. the probability of cards to get into the top-3 positions of an event.
1
u/peridox Dec 13 '14
I think this counts, I did it a few weeks ago. It gets the yearly commit count, longest streak, and current streak of a GitHub user and outputs it to the command line. It's written in JavaScript with npm.
I've also put it on npm and in a GitHub repo.
Here's some example output:
1
u/MasterFluff Dec 15 '14
Sample Output:
{'Visa': '4556 7493 3885 5572', 'Age': '64', 'Password': 'aing1seiQu', 'Middle Initial': 'B', 'Phone': '561-357-4530', 'Last Name': 'Diggs', 'Postal Code': '33409', 'State': 'FL', 'First Name': 'Lisa', 'City': 'West', 'Username': 'Unifect', 'Address': '2587 Holt Street', 'Email': {'Address': 'rhyta.com', 'Name': 'LisaBDiggs'}, 'Birthday': {'Year': '1949', 'Month': 'December', 'Day': '18'}}
creating fake user information with python from FakeNameGenerator.
This is some code i'm working on for another project. It's in python and there are definitely easier ways i could have done this (BeautifulSoup), but I used re in order to teach myself regular expressions. Pretty handy when needing to make 1 time fake user accounts.
1
u/jnazario 2 0 Dec 15 '14 edited Dec 17 '14
this happened to coincide with work. F#. it analyzes the VZB network latency page (HTML tables) and provides a set of internal data tables from that. a small demo shows the average trans-atlantic latency.
outputs:
thanks, i needed something to do some simple scraping!
1
u/[deleted] Dec 25 '14
This is only mostly related. I just started working on a long-term side project to scrape, track, and analyze bump music played on NPR. At the moment I've only completed the scrape aspect, but I remembered seeing this challenge, and thought it might be of interest to somebody out there. https://github.com/Mouaijin/NPR-Bump-Music-Scraper
1
u/SikhGamer Jan 01 '15
Are we allowed to use third party libraries? Or does it have to just the plain language?