• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

A java program to perform mouse clicks on a website ?

 
Ranch Hand
Posts: 637
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can anyone suggest where i can get "simple" & well commented code to click and/or save certain parts of a website ? What are the subjects in computer science/java that one needs to know to be able to understand and implement such a project ?
Can this be done by a console based program or is GUI compulsory ?
 
Author and all-around good cowpoke
Posts: 13078
6
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
1. search for "web crawler"
2. study the java.net package and the HTTP standard
3. why would a GUI matter??

Bill
 
Ranch Hand
Posts: 45
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Rahul Sudip Bose wrote:Can anyone suggest where i can get "simple" & well commented code to click and/or save certain parts of a website ? What are the subjects in computer science/java that one needs to know to be able to understand and implement such a project ?
Can this be done by a console based program or is GUI compulsory ?



1. click and/or save certain parts of a website --- Are you referring to a web crawler?
Consider reading Nutch
http://wiki.apache.org/nutch/

2. If you want to program it yourself, you can use URL class and its method openconnection and get the web page using the File methods in java(BufferedReader)

http://download.oracle.com/javase/6/docs/api/java/net/URL.html

3. For GUI, consider using Swing or SWT


4. What are the subjects in computer science/java that one needs to know to be able to understand and implement such a project?
Web Crawling, Web scraping which gives extension to subjects like Data Mining, Machine Learning etc

 
Rahul Sudip Bose
Ranch Hand
Posts: 637
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

William Brogden wrote:
3. why would a GUI matter??

Bill



This is what i had in mind - the java code monitors clicks. You click on the part that you want the program to download/click and it does the job. Maybe that way, i wont have to hard code the url's into my java program. I guess a that gui would make all this convenient.
 
Blueberry pie is best when it is firm and you can hold in your hand. Smell it. And smell this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic