Downloading web page content

I want to take radio programme listings from a web page, such that I can parse the data and select certain programmes details only.
Firstly how do I actually get the web page content out? Does it go into a text file? The actual content includes programme times, which might be a means of picking out selected text. Does anyone know where I could find some code that will do that. My intention is to pass this information into a database which connects to my own web site.
This is for a dissertation and I am starting to run out of time, so I would be hugely grateful for any assistance.
Thanks
Rob

Looks like you need to...
a. Read Javadoc for java.net.URL
b. Read about JDBC(if what I understood is right, which is output of your program goes to database) See http://java.sun.com/products/jdbc/index.html
c. Read about XML parsing and transformations. See http://java.sun.com/xml/xml_jaxp.html

Similar Messages

  • Printing web page content from android tablet

    When I attempt to eprint a web page, the web address line prints just fine (with a lower line that reads:"sent from Samsung tablet"), but none of the content, even though the print preview showed everything on the page that I needed. PLEASE HELP!   Is the web page content considered an attachment and if so, how do I get the attachment to print?
    This question was solved.
    View Solution.

    Hi TurboLady,
    Thank you for the update.  I appreciate it.  You read the document correctly.
    The best way to print the web content is to print the web page using the browser found in the HP ePrint app.  Please download and install the HP ePrint Mobile app from the Google Play store. For reference I’ve included the HP ePrint Mobile App FAQ document.
    Please let me know how that works for you.
    Regards,
    Happytohelp01
    Please click on the Thumbs Up on the right to say “Thanks” for helping!
    Please click “Accept as Solution ” on the post that solves your issue to help others find the solution.
    I work on behalf of HP

  • HT4922 Downloaded 5.1.1. to my iphone. Now, Safari will not connect to my server.  Can not download web pages and many of my apps. Running very slow sluggish! Is there a fix? Sound like other users are experiencing same problems.  Anyone have a solution?

    Downloaded 5.1.1 to my iphone. Now, Safari will not connect to my server. Can not download web pages and many of my apps. Email seems to be ok. iphone running slow and sluggish.  I have read several other users have experienced the same problem. Any solutions?

    Basic troubleshooting steps oultlined in the User Guide are restart, reset, restore from backup, restore as new device.
    You need to go through all steps in succession until your problem is solved.  If going through ALL these steps fails to resolve your issue, then you'll need to bring your phone into Apple for evaluation and possible replacement.

  • Read web page content via Sockets

    Hey,
    I have to write a program that will read web page content, using sockets.
    I got that piece of code and it works for most pages:
    Socket socket = new Socket(address, 80);
              BufferedReader input =
                   new BufferedReader(
                        new InputStreamReader(socket.getInputStream()));
              PrintWriter output =
                   new PrintWriter(socket.getOutputStream(), true);
              output.println("GET " + pageName);
              String response = "";
              String curline  = input.readLine();
              int i=1;
              while(curline != null){
                 response += "\n" + curline;
                   curline   = input.readLine();
                   System.out.println(i + curline);
                   ++i;
              output.close();
              input.close();but not for the one it is supposed to work:
    http://portalwiedzy.onet.pl/tlumacz.html
    I could get it to work using this:
    URL url = new URL(host + query);
    URLConnection uc = url.openConnection();but I really have to use sockets.
    Any advice, people? :-)

    There's an RFC that goes over the HTTP protocol (or rather, several RFCs for the several versions of the protocol). You probably want to google for that and use it as a reference for this project.

  • Centre Align Web Page Content

    Hi,
    Need some help center aligning web page content when it maximizes or is resized. I have grids, panels, etc and want these to center on page.
    Is there a property of the page/body/head/form/div that can be set for this or is javascript required to achieve this.
    Any help mcuh appreciated.
    SNI

    Hi,
    I tried what the thread did and still cannot my layout panel to center align.
    This is my jsp line:
    <ui:panelLayout binding="#{Login.pnlLogin}" id="pnlLogin" style="height: 306px; left: 382px; top: 216px; text-align: left; vertical-align: middle; width: 100%; -rave-layout: grid; horizontal-align: left;">

  • Analysis of the Web Page Content

    Could anyone give me some tips on it?3x

    Can you expound on what you need ie what WEB PAGE CONTENT?

  • The ability to download web pages.

    Hello there!!
    I just wanted to ask here if the 'safari' built-in iPod touch explorer able to download web pages and save them to view them later at offline mode.
    Best regards!!
    atar.

    atar wrote:
    Hello there!!!
    Firstly, thanks you about your response!!
    Secondly, I didn't mean to iPad apps but to iPod touch apps, so if you know about a cool app who allow to save web pages for watching them later at offline mode, please update me!!
    Sorry, I should have typed iPod rather than iPad.
    Both of the products I mentioned are available for the iPod Touch & iPhone. Check out the App store.

  • Slow to download web pages

    For the past week or so my iBook G4, OS X 10.5.2 has not been downloading web pages properly. Usually very slow and halting. Occasionally one will come up normally and occasionally it won't come up at all and I get a "cannot find the server" message. Occurs with both Safari and Firefox, both wireless and Ethernet. I seem to have a good signal. My wife's PC is working fine on the same cable modem/router. I've done the disc utility, virus scan, restart. What next?
    Jim

    Is there anything else that might have changed in the last week? How long has Leopard been installed? When was the last software upgrade?

  • How can I add a "search" field for web pages content-not blogs or podcasts?

    This seems to be such a basic function, I can't believe I'm having so much trouble. I don't have a blog or a podcast on my new website that I'm in the process of designing. So how do I allow people who'll visit my site to search there for specified content? The only instructions I find are for the RSS in inspector for blogs or podcasts. All I want is for people to be able to search my site/web pages (that have no blogs or podcasts on them). This must be a common request... or am I crazy? How do I do that?
    Thanks for your help.

    I think I've answered my own question after a few hours of searching:
    http://services.google.com/searchcode2.html?accept=on
    Thank you Google.

  • After i download web page, the downloads window in firefox 3.6.9 is blank

    why is the downloads window in firefox 3.6.9 blank after i download a file or web page? all of my downloads are directed to the "downloads" folder on my desktop [which i selected from ere i placed it]. i've tried many suggestions from contributors, mozilla magazine; and google suggestions.
    i selected in "tools, options" to "show" the downloads window when downloading," and elected NOT to close the window when downloads are finished. i cannot find an option to retain downloads in the download window.
    i also tried a dozen or more suggestions from mozilla's help page and from forum contributors.
    perhaps i'm incapable of accomplishing something that is beyond me.
    i do appreciated your advice.

    thanks, cor-el.
    yes, i checked the setting, and it is set exactly how you suggest.
    i remember that, in earlier versions of firefox 3x, the download window always remained open after a download was completed.
    in tools/options/general, the setting, "show the dowloads window when downloading a file" is checked. i unchecked the option to close the download window when all downloads are finished.
    now, what do i do about the "save files to" window and the "ask me where to save files" options. right now, the "save files to" is set to downloads folder. should i change this setting to "ask me"? or, what?

  • Web page content on 11.6 Air often displays incorrectly.

    I love my Macbook Air 11.6 for its quality size and weight but web browsing is a pain. I would love to read an open discussion on this. It seems to be that because the screen ratio is unusual i.e. very 'wide screen', many web pages are not written so that they display correctly. One has to always zoom in at least twice, but I could live with that if the content all displayed correctly, but it often doesn't. Try going to the BBC.co.uk. First page is ok but click on Wimbledon live and the links to live games are a mess. Try KLM.com - one has to zoom until it goes off the right hand side before the booking fields display correctly. Same thing for Cricinfo.com.
    Today, I see that Chrome does it better but shouldn't Safari (my preference because of how it handles Evernote) be the KIng on Macs? Will this ever be rezolved? In Apple stores the genius says that it is down to the coding done by the web site writers and so I fear that they are not going to all re-write their code to please just one weird screen aspect ratio.
    My best solution would be to sell this and get a 13.3, no? Pity but seems the only way...   JJ

    Actually, 1366x768 is a very common resolution (and has been for quite a few years).  It really is up to the website coding and the browser to deal properly with different resolutions.  You should be able to even select an actual odd resolution manually and have the page display correctly.  But, with respect to the resolution of your Air, it is basically an industry standard and should not be the cause of any problems with the way a site displays.

  • My Yahoo like Dynamic web page content creation

    Are there any methodologies/best practices available for creation of pages like My Yahoo.
    Basically, display of page depends on sections chosen by the user for display and inside those sections content is also what is chosen by the user. Page is different for different users based on their options.
    Are there any methodologies/best practices available for this kind of work using JSP.

    If your ISP don't support JSP / Servlets,
    1.use any server side technolgy, something like ASP.
    2.Read the files and transform them as Strings (or StringBuffers).
    3.Pass these Strings as parameters to the applet (if you are forced to use java technology, otherwise you can do it using ASP itself).
    4.Construct the required format (content) in your applet.
    Don't forget that the stuff will be in applet but not a complete web page. The ideal solution is asking your ISP to provide JSP engine.

  • Scrambled email messages and web page content

    Over the last 2 days I've been experiencing some problems. The content in some of my emails (and on some web pages) is scrambled. It looks like hundreds of fractions on top of each other rather than understandable messages or information. Can anyone help?
    iMac G5   Mac OS X (10.4.4)  

    Hi tnov
    Search your system for the font Helvetica Fractions or Times Fractions, Phonetic, IPA, Hebrew, or Greek and try removing them.
    Just be careful not to remove anything from:
    Macintosh HD/System/Library/Fonts
    Matthew Whiting

  • Using Java for dynamic web page content

    I've currently got a Perl program that I'd like to convert to Java. It merges two files that are stored on a web server and generates a "dynamic" HTML response.
    For example, if I have the following files on the server:
    File1:
    <Comment1>This stuff</Comment1>
    <Comment2>That stuff</Comment2>
    File2:
    <HTML>
    <Comment1><br><Comment2>
    </HTML>
    When I go to the URL
    www.mysite.com\cgibin\merge.pl?file1&file2
    the Perl program will produce a web page saying:
    This stuff
    That stuff
    The major obstical for the rewrite: NO JSP ALLOWED. It's not allowed by the ISP.
    Now for the questions:
    - Could this be done using Java?
    - How could I initiate the Java app and pass it the parameters? (applet tag, access Java inside Perl, use Java Script somehow)
    - Will an applet tag even work for this since the final page is generated completely from other files?
    Thank you very much for your help.

    If your ISP don't support JSP / Servlets,
    1.use any server side technolgy, something like ASP.
    2.Read the files and transform them as Strings (or StringBuffers).
    3.Pass these Strings as parameters to the applet (if you are forced to use java technology, otherwise you can do it using ASP itself).
    4.Construct the required format (content) in your applet.
    Don't forget that the stuff will be in applet but not a complete web page. The ideal solution is asking your ISP to provide JSP engine.

  • Mail won't send web page content or link

    I posted this the other day on the Safari site but should have posted here as well.
    Suddenly I am unable to forward a web page in Safari 3.12 through Mail. I get the message:
    "Safari couldn’t create an email message because it couldn’t locate an email application.
    You can use the Mail application included with Mac OS X to send email. To do so, you might need to install Mail using the Mac OS X installation CDs."
    This occurs whether I wish to mail the link to the page or the page contents. The program has been installed since I purchased the laptop and never had a problem doing this before. Any ideas or solutions? Thanks,
    Dennis

    Found Answer in previous discussion of this date.

Maybe you are looking for

  • How to get indexes of a pattern in MessageFormat

    Hi friends, Any urgent help will be much appreciated. I've a pattern like this "INSERT INTO SOME_TABLE values({0}, {1}, {3}, {5}, {7})" before I format this pattern, i want to collect the indexes(0, 1, 3 etc) into a collection from this pattern. Is i

  • Site definition in SMOEAC

    Hello everyone, We recently performed a system copy from our production system into a test system. We are trying to connect this new system to the old R/3, but we are facing a problem right now. We created new RFC connections, logical systems and run

  • How to find out if a table has logging on?

    I need to temporarily turn off logging, and restore the logging setting afterward. How do I find out if a table has logging on or off before my change?

  • Gallery's UN/PW not recognized by AppleTV

    I uploaded a gallery to MobileMe via iPhoto and password protected it as well. It is accessible via Safari on my iMac so I know the UN/PW combo is valid. But when I go into my AppleTV and access the gallery via MobileMe there, the UN/PW doesn't let m

  • Changing disk on RAID5

    Hello! Im about to change a disk on our RAID5 Xserve RAID. The RAID is currently protected, but im changing the disk because of a previous disk error. I have read the RAIDAdmin1.2 and the XserveRAID_UsersGuide from www.apple.com/server/documentation.