d2jsp
Log InRegister
d2jsp Forums > Off-Topic > Computers & IT > Programming & Development > What Language Can Make This Happen?
Add Reply New Topic New Poll
Member
Posts: 23,261
Joined: Dec 17 2006
Gold: 18,129.00
Aug 3 2014 07:04am
So, I've got a solid background in data structures and overall programming languages due to school. However, the time has come that they no longer teach much about programming and it's time to work on some stuff on my own.

I was thinking of starting a program that would for example:
A. Log in to x website
B. (Some sort of sales website) scan for x word at x price.
C. Populate picture, price, and description on my desktop app.

From there, I can add more features but this seems like enough to atart.

I'm pretty sure .net is what I need to perform this task? I've never used it so if anyone can point me in the right direction that'd be cool.

School has taught me how to use languages but no Web ones so I'm a little lost.
Member
Posts: 11,610
Joined: Oct 28 2008
Gold: 1,795.00
Aug 3 2014 07:40am
you'd have a hard time finding a language that can't do this
Member
Posts: 23,261
Joined: Dec 17 2006
Gold: 18,129.00
Aug 3 2014 07:47am
Quote (0n35 @ Aug 3 2014 08:40am)
you'd have a hard time finding a language that can't do this


I guess my question is: what would be easiest to do this? I get that most have libraries to do so, but there has to be a better choice than others?
Member
Posts: 32,925
Joined: Jul 23 2006
Gold: 3,804.50
Aug 3 2014 10:04am
Quote (PureOwnage2 @ Aug 3 2014 09:47am)
I guess my question is: what would be easiest to do this?  I get that most have libraries to do so, but there has to be a better choice than others?


why don't you start by listing what languages you're comfortable with? if you're not comfortable with .net, then don't do it. you can do it in python, java, c, c++, etc.

keep in mind that depending on the website, it can be easier or more difficult. there are a lot of websites that already do price comparisons. it might be easier to let them do the heavy lifting, and then you can steal data from them. that way you're less susceptible when any given website changes their layout.
Member
Posts: 23,261
Joined: Dec 17 2006
Gold: 18,129.00
Aug 3 2014 10:56am
Quote (carteblanche @ Aug 3 2014 11:04am)
why don't you start by listing what languages you're comfortable with? if you're not comfortable with .net, then don't do it. you can do it in python, java, c, c++, etc.

keep in mind that depending on the website, it can be easier or more difficult. there are a lot of websites that already do price comparisons. it might be easier to let them do the heavy lifting, and then you can steal data from them. that way you're less susceptible when any given website changes their layout.


I know c++, c, java, and vb.net enough to get by. Not excellent at any of them but proficient.

I guess having them do the searching might be easier and then populate the calculated data into my app.

In all honesty, I always want to do something with my skills but I always talk myself out of my ideas for whatever reason. Just trying to sharpen some skills since school hasn't required much programming lately.
Member
Posts: 32,925
Joined: Jul 23 2006
Gold: 3,804.50
Aug 3 2014 11:06am
Quote (PureOwnage2 @ Aug 3 2014 12:56pm)
I know c++, c, java, and vb.net enough to get by.  Not excellent at any of them but proficient. 

I guess having them do the searching might be easier and then populate the calculated data into my app. 

In all honesty, I always want to do something with my skills but I always talk myself out of my ideas for whatever reason.  Just trying to sharpen some skills since school hasn't required much programming lately.


if that's your goal instead of a specific program, then i suggest avoiding web scraping. try interacting with a simple API instead to make some sort of app. for example, i personally hate youtube's web page, so i used the API to create my own. instead of seeing all my subscriptions on one page, i can see subscriptions by category. it's also incredibly painful to look at a channel's playlists if there are a lot of them since you can't sort by # videos, # views, alphabetical order, etc and you can't filter by that either. i haven't yet, but one of these days i'm gonna make my own screen to see playlists the way i want to. it's MUCH easier to use an API than to try and read from an html page.
Member
Posts: 24,488
Joined: Jul 11 2011
Gold: 1,272.50
Aug 3 2014 03:01pm
And if you want to use cURL so you can login through websites and extract data, copy your login cookie data to their headers.
Member
Posts: 13,425
Joined: Sep 29 2007
Gold: 0.00
Warn: 20%
Aug 3 2014 06:01pm
Any language with regex support can do web scraping although ruby/python with the nokogiri add ons will do it much better.
Member
Posts: 1,358
Joined: Dec 30 2012
Gold: 0.10
Aug 5 2014 04:41pm
Good & simple DOM parsing PHP script. Might not be exactly what you're looking for but its pretty useful. I try to avoid regular expressions when scraping.

http://simplehtmldom.sourceforge.net/manual.htm

This post was edited by SelfTaught on Aug 5 2014 04:42pm
Go Back To Programming & Development Topic List
Add Reply New Topic New Poll