.net - VB 2008 - Extracting Data From Website?
Oct 20, 2009
All I've been able to do is create the form. We have to get information off of a website and load certain information back into the textboxes on our form.
Assignment 6 - Text Parsing Many applications require you to extract information from a block of text. We will be using this heavily in the project. This project is designed to give you some practice extracting information out of text files. You will need to open up a file, search the file for some specific content, and then copy that content and place it on screen.
Go to Jobs.com and select a state that starts with the same letter as your last name (if there is no state that starts with the same letter, use the second letter, then the third letter, etc.). For example if my name was 'John Byway', since there was no B or Y, I would pick a state starting with W - either Washington, West Virginia, Wisconsin, or Wyoming.
The idea is you want to extract all the jobs information out of the page. We want to put the jobs names in a combo box, so the use can pick any of the jobs. Ideally, this would also show the information about each job. You don't need to do that. However, you do need to extract the information and put it on the screen (When you load the next job, the old job information will be lost, and you will be left with the information about the last job loaded)
Tasks
1. Go to the above address, view the source in the browser, copy and paste it into a text file. You do not need to access the Source of the web page within your application.(in IE go to View / Source; In FireFox go to View / Page Source)
3. Extract each job title and place the name in the Combo box.
4. Find and extract the following fields. Note, some jobs may not list all of these. In that case, get as many as are presented.
a. Date
b. Title of job
c. Company
d. Location
[code].....
Indicate on screen how many jobs you found. Note, you only need to look on the first page of jobs?
View 1 Replies
ADVERTISEMENT
Nov 26, 2009
how to find something on a webpage and then put it into my vb form. Like pulling the name of someone from [URL] and posting it into a textbox.
View 2 Replies
Feb 3, 2010
My university has a website that students can use to check stuff like their lesson schedules, latest grades, exam times, etc. Just general information about you and your study (after you have logged in of course).For interested, this is the website (not much use without a login obviously, but still): [URL]I have been thinking lately that it would be nice to have a desktop application that could give me the same information. However, I have absolutely no idea how that would work, and whether or not it is even possible. I mean, technically it should be possible for me to get the information (how else does the website get it) provided it is not secured (even when using the correct login details). I am sure the website communicates with a database somewhere. Does that mean I could theoretically also communicate with the database (probably: read from it only, not write) for example by executing queries?If that is possible, how do I figure out which queries to use for the different pieces of information? Obviously I don't know the details of the database so I can't just send a random query and expect it to work...
View 8 Replies
Dec 20, 2010
I want to extract some information from a web site (Bloomberg). This side has a search textbox with a onKeyUp event that, as far as I can understand, uses AJAX to create a table. Is it possible to insert some text in the textbox and then get the table created with AJAX? Given the source code of the page with the tabled already AJAXed (If you understand what I want to say here), I can easily retrieve the table. I just need to get the source code with the table already on it.
View 7 Replies
Nov 7, 2009
I was just wondering how to extract or parse any particual tags (whichever I specify) from webpages. I know how to extract text and links from webpages, but I tried to use the same method from the following code for div tags, title tags etcetera and it doesn't seem to work:
[Code]...
View 2 Replies
Jan 23, 2011
I'm brand new to visual basic and I've been given an exercise to extract data from a text file. I can get the lines of data to read in and can get the names out using the following code. How can I extract the department i.e. sales and finance also using the mid and instr functions? I also need to be able to list list the people by department using a dropdown combo box.
[Code]...
View 3 Replies
Mar 13, 2011
I am wanting to get data from a website to use in my calculations, the website is:
[URL]
I then want to (Imput, the station ID) for example "OMDB" then automatically click the button to get the required data. once I have this I need to get parts of this data into a textbox to complete my calculations.
I have little knowledge of this process but understand I need to use the Ellements of the page to get the data I want.
So this is what I have at the moment, but it is no realy getting what I what:
Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
On Error Resume Next
[Code].....
View 15 Replies
Mar 7, 2011
How can I get some random unknown data off a website.It's a score on a hiscores.How can I do this?
View 7 Replies
Feb 19, 2010
What Im making is like a face book and tagged login from my app
1. I have Combobox with 3 urls in there ( Facebook.com Tagged.com and Bebo.com )
2. I have a Form2 with webbrowser
3. I have a Button when clicked it should open up my form 2 and preview of the website which I selected in my combobox in form1
All I'm trying to do is when I select lets say facebook in my form 1 and click load it should open up my form 2 with facebook website in it.[code]Now when I click my button in form 1 it will load Form2 ( named Explorer1) but my form2 is not showing me facebook or tagged page for some reason
View 13 Replies
Apr 6, 2009
What I want is: To scan a website every 15 mins or so, (craigslist in this case), and email myself any new posts that come up. I know I need to use WebClient, but I never used that before. Another question would be how to only email when a new post is up and not receive the same email every 15 mins.
View 2 Replies
Nov 7, 2010
Here is what I did.
1. Went to data source window and clicked "add new data connection"
2. Choose Data Base clicked next
3. Clicked Create Typed UserInformation as the name
4. Next.... Under Data set name I typed UserInformation again
Does naming the database and the data set the same cause problems?
5. Created New Table called users for UserInformation Database.
6. I added the following Columns: FirstName, LastName, Address, and Phone
7. Edited the table to add a couple of people. Tom/Franks/108 blah street/5555555 and Bill/West/109 blah street/5555555.
8. I also reconfigured the data connection in the data source window to show the users table.
I have four labels on my form, a text box, and a button.
I want to be able to search the database by last name for what the user typed into the textbox when they click the button.
I know this is probably easy for all of you but I am still trying to get used to using databases.
View 1 Replies
Mar 19, 2010
I need to convert a VB6 application into VB.Net Windows application. The program pulls data from MS Exchange (UserID, firstname, lastname, etc - not the emails themselves) and places it in a .txt file. The code has been converted, but the program does not work. When the application is run, the .txt file is created, but is blank and I get a pop-up that shows the following, "trying to access email in outlook do you want to allow this?". The popup box is gone in an instant and when I try to click on yes, it does nothing. I always have to end the program as it is non-responsive.
View 14 Replies
Jan 3, 2006
Im trying to extract predominately table data from a PDF file, however, I would also like the option to extract image files (such as graphs, etc) as well.Is it possible to extract data from PDF files using a VB.Net application? Im trying to get this process as automated as possible, so Im trying not to use 3rd party applications such as pdf file convertors or in-line pdf readers.
Are there any free, or relatively cheap PDF data capture API's/code snipets that I can use to import data from a PDF file? Another option is to export PDF data/images into an excel spreadsheet. Is there a .Net tool that will allow this?
View 3 Replies
Apr 12, 2012
I am looking to pull a specific time of data from my sql Data Base, Is this correct or is there a different way to do it?
Dim sqlShift As String = "SELECT * FROM ShiftTasks WHERE Shift=@Shift, Time>=@Time1 and Time<=@Time2 ORDER BY [Shift], [Time], [Priority] DESC"
Using Con As New SqlConnection(ConnectionString)
[code]....
I found it, Needed to replace the , in the SQLShift String with an and
Dim sqlShift As String = "SELECT * FROM ShiftTasks WHERE Shift=@Shift and Time>=@Time1 and Time<=@Time2 ORDER BY [Shift], [Time], [Priority] DESC"
View 1 Replies
Feb 2, 2012
I have a .trx file (a unit test result file) which is just xml inside and I want to read the file compare a few of the tags and change them as necessary and save the file again.
I found that VB.NET has a few tools to help so the first thing I do is load the document into an xml document which seems to work fine but I can't access any of the data I need. Right now I'm trying to access the attributes of the counters tag and change them after rerunning some of the tests.
this loads the file:
Dim Doc As XmlDocument = New XmlDocument
Doc.load("testFile.trx")
Attempted ways to access node:
[Code].....
View 2 Replies
Apr 24, 2011
Dim con As New OleDb.OleDbConnection
Public outputs As New DataSet
sub main()
sqlquery("SELECT * FROM Students", "mark")
[code]....
Here is an image of my table data and design I am trying to read some values from a database using the oledb dataset however when I run the sql command and get down to outputting the value I am greeted with the following error: "IndexOutOfRangeException: There is no row at position 0.". Yet when I run the very same sql command in access I get back the data I wanted.When I am running the above code, no errors are produced until I get down to the last writeline where I want to output my data.
View 1 Replies
Apr 25, 2009
I have a Access database table that I have extracted data from. The Age column has 12, 13 and 14 year old entries. I am trying to figure out how to calculate and extract the total of 12, 13 and 14 years old from this Age column. [Code]
View 2 Replies
Nov 11, 2011
I am teaching myself VB with the use of a basics book, but I can't seem to find help for my project in the book.I am working on a project in which I have to open data from a csv file and use it to make graphs and analysis. The data is displayed in such a manner:
row 1: column titles
row 2: units
row 3-100: data
what I want to do is create arrays for each column in the csv, populated with the data.
View 3 Replies
May 24, 2012
Currently, I am working on a personal project of mine to create a Pokemon Battle Simulator, mainly because I wanted to see if I could. I have created a multidimensional array used to hold all the information needed for each Pokemon I add (Currently it is only two Pokemon) The code for this is as follows:
Public AllPOKEMON(,) As Pokemon = { _
{New Pokemon("Charizard", 6, 2, 10, 360, 293, 348, 280, 295, 328)}, _
{New Pokemon("Venusaur", 3, 5, 8, 364, 289, 328, 291, 328, 284)} _
[code].....
View 3 Replies
Jun 10, 2011
This is the code i wrote in order to First open a csv file as excel, then find the required three columns, n then read data from them n save the data into another variables showing them in textbox. As about the csv file, it contains many columns out of which my focus is on only 3 columns under title ID, L, Lg.Problem is Excel doesnt actually open but Excel.exe process runs in task manager. But by this point its not the compile error; Compile error comes at 'Next' Statement. It says Compile Error: Next without For!!
Private Sub cmdFind_Click()
Dim xlApp As Excel.Application
Set xlApp = New Excel.Application
[code]....
View 2 Replies
Apr 13, 2009
I've tried to extract certain data using Regex in a File. but it seems not working.No errors and warnings have been found.[code]...
View 2 Replies
Sep 11, 2009
I have been trying to implement a user account system and storing name, email and score gained from completing a lottery game that i have created, is there a way to create a note pad within the program folder when button1 is clicked and the same data
View 1 Replies
Jun 22, 2010
I have attached that file. The sample of data are as below:
PUBLT 167_89 656 PB -38321.478 6807.984 657 PB DAUD 200005041 278.271074.5150 69.4035 08370074.1830 69.2755 083800254.1925290.4620083900254.5615291.010008400008390098.2710 74.3630 20.3943
[Code]...
the main problem here is i want to use 2 value from 2 line in one time to do that calculation... if those data in one line its not a problem..
View 10 Replies
Jun 25, 2010
I have a csv file with 48 columns of data. I need to open this file, place it into a data structure and then search that data and present it in a DataRepeater. So far I have successfully used CSVReader to extract the data and bind it to myDataRepeater. However I am now struggling to place the data in a table so that I can filter the results. I do not want to use SQL or any other database.
So far, this is working in returning all records:
Private Sub BindCsv()
' open the file "data.csv" which is a CSV file with headers"
Dim dirInfo As New DirectoryInfo(Server.MapPath("~/ftp/"))
Dim fileLocation As String = dirInfo.ToString & "data.txt"
Using csv As New CsvReader(New StreamReader(fileLocation), True)
[Code] .....
View 2 Replies
Jun 6, 2011
i am a newbie to visual basic .neti have a vb.net database that has 3 textboxs that go to a listbox and also store in a database.i was wondering if i can extract the data from the listbox to excel like a csv file or something along them lines s i have no clue on how to do this.
View 3 Replies
Mar 26, 2012
I need to realize an app that read appointments from an exchange server or (I think it's easier) from various outlook folders.
I can retrieve datas from my own calendar using this
Dim objOLApp As Outlook.Application
objOLApp = New Outlook.Application
Dim myNamespace As Outlook.NameSpace
[Code].....
View 2 Replies
May 24, 2011
I own a small tobacco store and am trying to write a VB program to take a scan of the barcode of a Drivers License and extract, and display the name, address, age, etc for added security of my clerks and making sure we do not sell to minors.
The following is the code i have thus far.
Imports System.Text.RegularExpressions
Imports System.IO
Public Class Form1
[Code].....
View 12 Replies
Oct 11, 2011
However a coworker and I are wanting to build a separate program instead of just running simple scripts.I'm running into the following problem:I am not sure how to program visual studio 2010 to the extent that when we paste in predictable text structures that it will take only certain items out of the text, assign them to variables that we can call later.Example:We log into a lot of UBRs for testing and the structure is basically thus:
View 10 Replies
Jun 18, 2009
I have a combo box which is databound at run time & I need to iterate through it to get all the values in it (not display items) & then add these to an array or collection.
View 2 Replies
May 12, 2012
I Have two listboxes , Listbox1 and Listbox 2 , I want to select some items from listbox1 to listbox2 , with those selected items in listboxe2 I want it to extract specific data concerns to those selected item from Microsoft Access and later.I want to use only those specific extracted data to calculated some mathematical function.
View 2 Replies