RE: Selenium tut for scraping 08-26-2016, 04:54 PM
#3
I can't get a great look at the code since I'm on mobile, but you should methodize the program (i.e., use methods to split it into chunks) and let it take command line arguments (the String[] args in main) to scrape the user's desired site. Also, with sites using couldflare, you need to give it a few seconds to pass the DDoS protection page.
After compiling ("creating", in your terms) the program, it will work on any computer you use it on. That's why Java requires import statements for everything: import statements tell the compiler what to include in the final product. Additionally, since Java is completely cross-platform, you can run it on any computer that has Java installed, not just PC.
(08-26-2016, 09:03 AM)BORW3 Wrote: I need to know, can I use Selenium on any PC after creating a java application? Or I need to install Selenium on each PC I intend to use the application on?
After compiling ("creating", in your terms) the program, it will work on any computer you use it on. That's why Java requires import statements for everything: import statements tell the compiler what to include in the final product. Additionally, since Java is completely cross-platform, you can run it on any computer that has Java installed, not just PC.
It's often the outcasts, the iconoclasts ... those who have the least to lose because they
don't have much in the first place, who feel the new currents and ride them the farthest.
don't have much in the first place, who feel the new currents and ride them the farthest.