Two Plus Two Newer Archives  

Go Back   Two Plus Two Newer Archives > Other Topics > Computer Technical Help

Reply
 
Thread Tools Display Modes
  #1  
Old 11-23-2007, 04:22 AM
CallMeIshmael CallMeIshmael is offline
Senior Member
 
Join Date: Dec 2004
Location: Tis the season, imo
Posts: 7,849
Default Programmers: what language to use/learn for this project?

Alright, I have this idea for a project I'd like to work on that involves a lot of interaction w/ websites. Basically, I will need to go to a bunch of different sites and perform some group of actions (inputing a username or other text info, browsing through a few pages, downloading info, etc).

I would like to be able to do this without actually going to the websites through a typical browswer, and actually write into the program the ability to connect with a site, scan it and input information.


Programming background: good with C/C++, and some of the more stat oriented languages (matlab and R type things). But, just about all of my C/C++ experience is related to more simulation/math type things, with a bit of win32 stuff, so I have no idea where to start doing this in C++.


What language would be good here? Im assuming its probably a choice between C++ or Java? I have no Java experience, though I imagine that w/ the C++ knowledge I could learn it in decent time, and Im in no immediate rush here. I did a tad of research, and it appears that stuff like the URL/URLConnection classes might be a step in the right direction, but I really have no idea. Obviously Im sure this *could* be done in C++, but if a lot of the leg work is already done in the java library (or some other language) it would make sense to go that way.


Obviously, if there is some other language that makes the task easy, Im more than open to suggestions. Though, the task would also require a fair amount of math, where speed is fairly important, so the language would have to be able to handle that as well.
Reply With Quote
  #2  
Old 11-23-2007, 04:49 AM
pokergrader pokergrader is offline
Senior Member
 
Join Date: Apr 2005
Posts: 3,792
Default Re: Programmers: what language to use/learn for this project?

Python or Java. And unless the math is incredibly complex, network latency is going to be the bottleneck, at which point any language will be fine.

Python is easier and more fun, Java is more like C/C++ (and faster than python), but either one will do the job.
Reply With Quote
  #3  
Old 11-23-2007, 10:28 AM
Meech Meech is offline
Senior Member
 
Join Date: Nov 2004
Location: Meechigan
Posts: 1,159
Default Re: Programmers: what language to use/learn for this project?

Anything with a HTTP library would suffice. My current personal preference is Ruby.

http://stdlib.rubyonrails.org/libdoc...doc/index.html
Reply With Quote
  #4  
Old 11-23-2007, 12:36 PM
kerowo kerowo is offline
Senior Member
 
Join Date: Nov 2005
Posts: 6,880
Default Re: Programmers: what language to use/learn for this project?

Might think about C# as well to leverage your C/C++ knowledge.
Reply With Quote
  #5  
Old 11-23-2007, 03:55 PM
psionic storm psionic storm is offline
Senior Member
 
Join Date: Feb 2007
Location: Hamilton, ON, Canada
Posts: 279
Default Re: Programmers: what language to use/learn for this project?

[ QUOTE ]
Obviously Im sure this *could* be done in C++, but if a lot of the leg work is already done in the java library (or some other language) it would make sense to go that way.

[/ QUOTE ]
theres tons of 3rd party c libaries on the net as well.
Reply With Quote
  #6  
Old 11-23-2007, 04:33 PM
_dave_ _dave_ is offline
Senior Member
 
Join Date: Feb 2005
Location: UK
Posts: 2,628
Default Re: Programmers: what language to use/learn for this project?

[ QUOTE ]
[ QUOTE ]
Obviously Im sure this *could* be done in C++, but if a lot of the leg work is already done in the java library (or some other language) it would make sense to go that way.

[/ QUOTE ]
theres tons of 3rd party c libraries on the net as well.

[/ QUOTE ]

cURL is a Free example of such a library.
Reply With Quote
  #7  
Old 11-23-2007, 06:21 PM
CORed CORed is offline
Senior Member
 
Join Date: Sep 2002
Posts: 4,798
Default Re: Programmers: what language to use/learn for this project?

You might want to look at curl or wget. These are not programming languages per se, but are command-line utilities for doing mass retrieval from web sites, and I believe both have some scripting capabilities, or could be called from a program written in another language. They will handle the http headers, etc. and save you some programmin. No sense reinventing the wheel; your likely to end up making it square. If you do need to write it from scracth, perl, jave, ruby and python would all be reasonalbe choices. Java would probably be the easiest to pick up if you have prior experience in C and C++.
Reply With Quote
  #8  
Old 11-24-2007, 09:06 PM
BradleyT BradleyT is offline
Senior Member
 
Join Date: Dec 2003
Location: Vote Ron Paul 08
Posts: 7,087
Default Re: Programmers: what language to use/learn for this project?

C# should make this pretty easy. At my last job I wrote one in VB.NET to scrape search engine results from MSN/Yahoo/Google back before they all made APIs available.


http://www.ddj.com/184405712 has a c# example.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:54 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.