Capturing data from a website

Hello,
I would like to capture data from websites, or get a snapshot
of a given URL. I was wondering how this would be posible using
Java.
Any help or comments will be greatly appreciated.
Chanie

Thanks, that worked beautifully.
I was wondering if you could help me with one more point.
There are some webpages that before getting to them you must
give a username and password. I was wondering how I could get
data from such a webpage if I know the username and password
using Java.
Thanks in advance.

Similar Messages

  • Unable to capture data from drop down list in custom added field in migo tcode at item level

    Hi guys,
    need bit help in resolving query related to custom added field in Tcode migo.
    i have added a field in migo at item level ,in this i have used drop down list
    to get data but unable to capture data from drop down list.gown through
    many blogs in scn but unable to resolve.
    Please help me out in this.
    Thanks,
    Umakant.

    Hi,
    U can use following code to fill the list box
    write this code in PBO
    In layout editor please select listbox in dropdown attribute of input field and put some fctcode attribute
    TYPE-POOLS vrm.
      DATA values TYPE vrm_values WITH HEADER LINE.
      TABLES: <ur custom Database table>.
      clear values, values[].
      SELECT * FROM <ur custom Database table>.
        values-text = <TABLE FIELD TO DISPLAY IN DROPDOWN> .
        values-key = <TABLE KEY FIELD TO DISPLAY IN DROPDOWN>.
        APPEND values.
      ENDSELECT.
      CALL FUNCTION 'VRM_SET_VALUES'
        EXPORTING
          id              = '<SCREEN INPUT FIELD NAME>'
          values          = values[]
        EXCEPTIONS
          id_illegal_name = 1
          OTHERS          = 2.
    Also please define the following before accessing the listbox value
    data: <listbox input field name> type <table field name>,
            <inputfield name where text to display> type string  in top include
    In PAI, select the text from the table into <inputfield name where text to display>  depending on value selected which will be called when enter key is pressed or any vale is selected

  • Capturing data from ALV grid

    Dear experts.
    Can anyone help me to capture data from ALV grid to pass to a BAPI FM.
    My ALV grid has the check box as first column and I want to capture only the rows in the grid with these checkboxes checked. I would prefer to do it without OO.
    Regards
    Sathar

    Loop at the table used for ALV data where <checkbox-field> = 'X'.
    Best,
    Jim

  • How to read data from a website

    Hello Everyone..
    I hav a interesting scanario..
    Is it possible to read data from a website..!!!
    My scenario is to read a bank statement from a banks website(internet banking)..
    using the same authentication my application must be able to pull the data from the website and update my r3...
    Please crack this out for me..
    Awaiting for solution..
    Thanks in advance

    check whether the bank offers webservice to get this data, if yes either from ABAP of JAVA you can consume this webservice to get the bank statement.
    else
    from abap you can use cl_http_client to make your ABAP to act as http client to read data from that website. (search weblog and ABAP forums for cl_http_client - there are lot of examples)
    Regards
    Raja

  • Capturing data from a RS232 device

    how do I capture data from an RS232 device to my APEX application. Precisely, I am using a barcode scanner and I need to know how to get the barcode data into an item (say P12_barcode) in my application. I have tried the keyboard wedge and the problem is that I have to set the input focus each time I need to collect the barcode of an item, so I have to switch to RS232 mode but how do I get this barcode data now?
    Please HELP...

    Thanks a trillion for this reply! wether your reply was helpful is an understatement in this matter!
    That is the type of Barcode scanner I am using man... they call it USB Keyboard emulation. It scans into note pad, word processors and text items freely.
    In my design for a solution to this problem, I have on paper, your type of solution but I lack the ability to set the focus on the desired Text Field when my cash_sales page loads.
    Secondly you said "I did have to set it to include a "Enter" after each scan" that touched upon another bug in me: I had always wanted the form to submit after each scan so that my procedure can use it against the items database and display the item in my Current Transaction Report. How did you set it to include a "Enter" after each scan? Is it on the scanner or at the page item level?
    Precisely I am using Metrologic MS9520 barcode scanner a.k.a Honeywell MS9520 barcode scanner!
    If I can set a cursor in my Px_Barcode text item after loading my CASH_SALES page and automatically submit the page after a scan(without clicking any button) then my nightmare is over...and you become my Virgo 2009 Hero.
    Happy September :)

  • Capturing Data from forms before it is stored in the table

    Hi...I would like to capture data from a form before the data is stored in the database. that is, i would like to access whatever data is entered into a field right after the user pushes the Insert button. I would like to do some processing on the data and then store it in the table along with the data from the other fields. Is it possible to access it through a bind variable or something? Please tell me how to go about it. Thanks

    Hi,
    You can make of the session variables to access the values. Every field in the form has a corresponding session variable with the name "A_<VARIABLE_NAME>". For example for deptno the session variable will be "A_DEPTNO"
    Here is a sample.
    declare
    flightno number;
    ticketno varchar2(30);
    tdate date;
    persons number;
    blk varchar2(10) := 'DEFAULT';
    begin
    flightno := p_session.get_value_as_varchar2(
    p_block_name => blk,
    p_attribute_name => 'A_FLIGHT_NO');
    ticketno := p_session.get_value_as_varchar2(
    p_block_name => blk,
    p_attribute_name => 'A_TICKET_NO');
    tdate := p_session.get_value_as_date(
    p_block_name => blk,
    p_attribute_name => 'A_TRAVEL_DATE');
    persons := p_session.get_value_as_number(
    p_block_name => blk,
    p_attribute_name => 'A_NOF_PERSONS');
    p_session.set_value(
    p_block_name => blk,
    p_attribute_name => 'A_FLIGHTNO',
    p_value => to_char(NULL)
    p_session.set_value(
    p_block_name => blk,
    p_attribute_name => 'A_TICKETNO',
    p_value => to_char(NULL)
    p_session.set_value(
    p_block_name => blk,
    p_attribute_name => 'A_TRAVEL_DATE',
    p_value => to_char(NULL)
    end;
    In the above example the values of the variables are got into temporary variables and session variabels are set to null.
    Thanks,
    Sharmil

  • Using streams to capture data from physical standby database.

    Does anybody know if it is possible to use streams to capture data from physical standby database instead of PROD database? The standby database is in read only mode. We use Oracle 11gR2.
    Thanks in advance.

    physical are closed : how will it managed the queues and overspill queues when target is not present? Also the data dictionary must reflect the primary but If you run capture, then you introduce rules that are not on primary: How ?

  • On my mac, photoshop cc "save as" removes capture date from exif data. How do I prevent this?

    On my mac, photoshop cc "save as" removes capture date from exif data. How do I prevent this?

    You had to reinstall CS6 after cancelling the CC as both were from the same Adobe ID. You can always use & keep both CC & CS6 together.
    Please refer to the blog:
    Can I install both CS6 and CC apps on my computer? « Caveat Lector
    Other references are :
    Creative Cloud Help | Install, update, or uninstall apps
    What is the difference CS6 & CC Versions?
    Regards
    Rajshree

  • Getting data from eCommerce websites

    hi Gurus,
           Can you guys let me know how to create an interface to fetch data from eCommerce websites into SAP.

    Hi Hemanth,
    I am not sure if this will be feasible, but perhaps you can <b>try accessing the RSS feeds</b> of the data that you need. I know about accessing the feeds from Enterprise Portal such that it even gets updated as the data on the actual site gets updated, but I am not very sure if it will work with XI. But, there is some hope since the feeds are XML content which XI can understand.
    Regards,
    Sushumna

  • How to retrieve data from other websites?

    Hi all,
    Don't know if anyone can point me in the right direction.
    How can I retrieve or fetch data from other website&rsquo;s (*Database*) ?
    I&rsquo;m trying to build a web application that would retrieve and fetch data from other website&rsquo;s (Database) like the www.comparethemarket.com.
    The data I&rsquo;m trying to fetch it is in database, in my opinion I think I have to make a http web request then send parameters, then get the result. I could not find any tutorials
    on the web,
    Thank you.

    Fahad_24 wrote:
    Hi all,
    Don't know if anyone can point me in the right direction.
    How can I retrieve or fetch data from other website&rsquo;s (*Database*) ?
    I&rsquo;m trying to build a web application that would retrieve and fetch data from other website&rsquo;s (Database) like the www.comparethemarket.com.
    The data I&rsquo;m trying to fetch it is in database, in my opinion I think I have to make a http web request then send parameters, then get the result. I could not find any tutorials
    on the web,
    Thank you.Unless the website provides an interface to their data, you are most likely not even allowed to do this. There is only one way to find out: contact them and ask about it or look around their website if their is a manual that describes how to do it. If there is such an interface, it will usually be some kind of web service (such as a SOAP interface).

  • Hi, I would like to ask about how to capture data from real time loop.

    Hi,
    Here is some overvier of my project:
    I have done real time control using labview 9.0. I used PID controller.
    In order to optimise this controller, I need to capture data from my sensor(input) and actuator (output).
    1. For example while real time control is running. I need to capture 1000 sample data (sensor(input) and actuator (output)).
    Then I will used these data for PID optimisation on the other loop without intefere my real time loop.
    2. When PID optimisation is completed, I will sent its PID parameter to real time control loop.
    3. These operation is done in parallel.
    Anybody can help me to solve these. Your idea may solve my problem.
    TQ

    Typically you will have to use RT FIFO or Queue communication to avoid any impact to your time critical loop.
    Best regards
    Christian

  • Capture data from a http request

    i am really new learning abap and i just playing around so i looking a way for capture data from a http request giving the request value and submit for respont something like :
    put the url "http://www.imdb.com/find?s=all&q=" in some way and way for the data to request by the user
    val = 'user_entry'
    result =(any_Function)http://www.imdb.com/find?s=all&q=val
    write / result.
    pd: sorry for my bad english

    Welcome to SDN.
    If you are saying that you want to read some request from the HTTP page,then you have to do it with BSP instead of ABAP.
    Check this link for BSP.
    /message/1688265#1688265 [original link is broken]
    Regards,
    Amit
    Reward all helpful replies.

  • Unable to capture data from Serial port using LVRT2010 in single core pentium 4 machine

    I am using application written in Labview using windows Labview
    Runtime environment 2010. Application creates a tunnel to intercept data from
    Serial port.
    My problem is, Currently, I am using single core Pentium
    processor. When I am trying to intercept the data between COM1 and COM7 (COM 7
    is a virtual port) it is not able to capture data.
    When I am running Labview RT environment using dual core
    processor machine it is running normally. I wonder whether it could be the compatibility issues with
    single core Pentium processor.

    Hi Magnetica
    Are both of the machines running the same runtime engine,
    drivers ect?
    Have you had RT applications running on this
    machine before?
    Is the development computer a 64bit machine?
    The processor is a supported model (See link below).
    http://zone.ni.com/devzone/cda/tut/p/id/8239
    Regards
    Robert
    National Instruments UK & Ireland

  • How to read data from a website based on user inputs through java programmi

    Hi
    I want to get information from a website based on some inputs that I have. The inputs change everytime and based on them, different output is expected. How do I go about with it? Please advice...
    Will data mining help in this? or is it used only for analysis and predictions?

    you can get the webpage you need very simply like this :
    Test.java
    public class Test{
              public static void main(String[] args) {
                   URLClient client = new URLClient();
                            // URL of a webpage
                   String webPage = client.getDocumentAt("http://content-ind.cricinfo.com/slvind/engine/current/match/343730.html?template=desktop;view=main;wrappertype=desktop");
                   System.out.println(webPage);
         }URLClient.java
         import java.net.*;
         import java.io.*;
         public class URLClient {
              protected URLConnection Connection;               
                   public String getDocumentAt(String urlString) {
                             StringBuffer document = new StringBuffer();
                             try {
                                            URL url = new URL(urlString);
                                            URLConnection conn = url.openConnection();
                                            BufferedReader reader = new BufferedReader(new InputStreamReader(conn.getInputStream()));
                                            String line = null;
                                            while ((line = reader.readLine()) != null)
                                                 document.append(line + "\n");
                                            reader.close();
                                       } catch (MalformedURLException e) {
                                       System.out.println("Unable to connect to URL: " + urlString);
                                       } catch (IOException e) {
                                       System.out.println("IOException when connecting to URL: " + urlString);
                                  return document.toString();
              }

  • Using interactive form to capture data from user u0096 please helpu0085.

    Hi folks,
         I am trying to use an interactive form to capture some data from the user.
    This is what I have planned to do
    User runs a program which will have four function module calls
    (FP_JOB_OPEN
    FP_FUNCTION_MODULE_NAME
    'Function modules which the above function module returned'
    FP_JOB_CLOSE)
    This will display a print box where I can click on the print preview to get the interactive form.
    From here I am not sure how to go about, but following is what I can think …
    Once the user enters the data in the form and he should be given some button to click(say ‘save’). This button click should trigger the program (PAI) which will read the data from the form (this data will be saved to a Z table)..
    First of all, Can I do this? Please guide…
    Note: I am not using WebDynpro ABAP or JAVA. Rather I am trying to use a Module pool + interactive form solution.
    Thanks in advance

    could you tell me how to read data from the form ? which function module(s) to be used ?

Maybe you are looking for

  • Possible to have both an index and TOC open by default?

    I'm using RH7 (I have RH 8 but don't use it since it buggers up formatting from previous versions) and I publish wbhelp. Is it possible to set BOTH the Index and TOC to display as open when the project is posted. When I generate a primary layout, I c

  • Can 64-bit runtime engine run a 32-bit vi?

    I have an application which is built with LabVIEW 2011 (64-bit) and install on a 64-bit OS machine, and it will call some vi which I think is also writen by 64-bit LabVIEW, now I want to modify a vi, but I only have the 32-bit LabVIEW version, and it

  • CONTROL PANEL LIQUID CRYSTAL DISPLAY HAS FADED

    THE DISPLAY WINDOW IS FADING OUT. DIFFICULT TO READ. IS THIS PANEL REPLACEABLE?

  • Trying to format my QT movie with "apple photo" JPG using cross fade

    Here's an example of what I'm trying to create: http://www.heese-cadieux.com/Home.html I have QT pro, iWeb, and iPhoto, and many other editing programs. I know how to make an image sequence, but not with cross fades, and my file size is still a bit b

  • Error executing macro Forecast Invoice Plan

    Hello, We are facing the error in a process chain of DP background processing. The error description is : "Error executing macro Forecast Invoice Plan. " In the details, it shows that the same error is there for all the CVCs of that planning area. Ca