Click here to Skip to main content
15,895,781 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: How do i open an excel file in a Richtextbox in vb.net 2008? Pin
Rod Kemp2-Jan-10 17:35
Rod Kemp2-Jan-10 17:35 
QuestionHow to read/extract data from a web page? Pin
jadothebest2-Jan-10 15:06
jadothebest2-Jan-10 15:06 
AnswerRe: How to read/extract data from a web page? Pin
nlarson112-Jan-10 16:43
nlarson112-Jan-10 16:43 
GeneralMessage Removed Pin
3-Jan-10 9:39
jadothebest3-Jan-10 9:39 
GeneralRe: How to read/extract data from a web page? Pin
Dave Kreskowiak3-Jan-10 15:12
mveDave Kreskowiak3-Jan-10 15:12 
GeneralMessage Removed Pin
3-Jan-10 15:17
jadothebest3-Jan-10 15:17 
GeneralRe: How to read/extract data from a web page? Pin
Dave Kreskowiak3-Jan-10 17:34
mveDave Kreskowiak3-Jan-10 17:34 
GeneralRe: How to read/extract data from a web page? Pin
jadothebest5-Jan-10 15:51
jadothebest5-Jan-10 15:51 
The data did not appear in source code at all so I had to install a firefox addon called "Web developer"
and I clicked "View generated source code" and I could see the data there.
In my case the cars data are being shown in a dynamic table, 1 row adds up as soon as a new car comes.
Here is 1 row of data:

<td class="x-grid3-col x-grid3-cell x-grid3-td-dealer x-grid3-cell-first " style="width: 78px;" tabindex="0"><div class="x-grid3-cell-inner x-grid3-col-dealer" unselectable="on">Privat</div></td><td class="x-grid3-col x-grid3-cell x-grid3-td-manufacturer " style="width: 98px;" tabindex="0"><div class="x-grid3-cell-inner x-grid3-col-manufacturer" unselectable="on">AUDI</div></td><td class="x-grid3-col x-grid3-cell x-grid3-td-modelDescription " style="width: 157px;" tabindex="0"><div class="x-grid3-cell-inner x-grid3-col-modelDescription" unselectable="on">A2 1.4 </div></td><td class="x-grid3-col x-grid3-cell x-grid3-td-price " style="width: 88px; text-align: right;" tabindex="0"><div class="x-grid3-cell-inner x-grid3-col-price" unselectable="on"><span class="format-right">7.000</span></div></td><td class="x-grid3-col x-grid3-cell x-grid3-td-firstRegistration " style="width: 58px;" tabindex="0"><div class="x-grid3-cell-inner x-grid3-col-firstRegistration" unselectable="on">6/2000</div></td><td class="x-grid3-col x-grid3-cell x-grid3-td-mileage " style="width: 73px;" tabindex="0"><div class="x-grid3-cell-inner x-grid3-col-mileage" unselectable="on"><span class="format-right">122.000</span></div></td><td class="x-grid3-col x-grid3-cell x-grid3-td-powerInKw " style="width: 48px;" tabindex="0"><div class="x-grid3-cell-inner x-grid3-col-powerInKw" unselectable="on"><span class="format-right">55</span></div></td><td class="x-grid3-col x-grid3-cell x-grid3-td-modificationDate " style="width: 98px;" tabindex="0"><div class="x-grid3-cell-inner x-grid3-col-modificationDate" unselectable="on"><span class="format-right">Heute - 21:29</span></div></td><td class="x-grid3-col x-grid3-cell x-grid3-td-location " style="width: 98px;" tabindex="0"><div class="x-grid3-cell-inner x-grid3-col-location" unselectable="on">85256 Vierkirchen</div></td>


few of values which i want to grap are 'AUDI', 7.000, "85256 Vierkirchen"
So far I coudn't grab these values using my code... So I thought of a new solution, I installed another ffox addon called "firebug" and checked how the data is coming and found out it's REVERSE Ajax DWR requests and responses.
I monitored these requests, and I noticed that every 1 minute, a request/response comes via POST and all these responses have the size of 90 bytes. But then I saw a response with a bigger size(about 648 bytes) I quickly checked the table in website, and YES a new car was there.

Since I had no idea about what reverse ajax dwr is, i googled a bit and found out that this website is using the polling method for pushing data every 1 minute from server to browser.
So to make this short, the data is coming from website to my browser every 1 minute, here is the response Body which I saw in firebug:

//#DWR-START#
adQueueListener.addNewAd({adId:124725772,category:'Limousine',changeInfo:{adId:124725772,adVersion:24,changeEventId:457859860,changeSubtype:['DESCRIPTION'],changeType:'Update',comment:"DESCRIPTION",creationTime:1262659849452,modificationTime:new Date(1262659849000),objectType:"AD"},city:"hanau",climatisation:'AUTOMATIC_CLIMATISATION',color:'BEIGE',commercial:false,consumerGrossPrice:4200.00,creationDate:new Date(1260208837000),dealer:false,dealerGrossPrice:null,doorCount:'FOUR_OR_FIVE',firstRegistration:new Date(788914800000),fuel:'PETROL',machtedFilterNames:["Mercedes"],makeName:"MERCEDES-BENZ",manufacturerColorName:"",metallic:false,mileage:149000,modelDescription:"C 180 Elegance",modificationDate:new Date(1262659849000),numSeats:5,powerInKw:90,powerInPs:122,priceDecrease:false,sellerId:2467966,transmission:'AUTOMATIC_GEAR',vehicleCategory:null,version:24,zipcode:"63450"});
//#DWR-END#
//#DWR-START#
dwr.engine.remote.handleCallback("47","0",0);
//#DWR-END#

The response location(ajax script location) is http://gb-ticker.mobile.de/ticker/dwr/call/plainpoll/ReverseAjax.dwr The data I want are in the adQueueListener.addNewAd method. So how to get these data from this ajax function?

Please let me know whether it can be done by parsing the html code or the ajax requests.
I will be pleased if you can shed some lights.
Many thanks
GeneralRe: How to read/extract data from a web page? Pin
Dave Kreskowiak5-Jan-10 17:24
mveDave Kreskowiak5-Jan-10 17:24 
QuestionImport XML into access db Pin
tessers2-Jan-10 1:52
tessers2-Jan-10 1:52 
AnswerRe: Import XML into access db Pin
Ebube4-Jan-10 0:28
Ebube4-Jan-10 0:28 
QuestionCreating Trial Version software Pin
Milind Panchal1-Jan-10 19:14
Milind Panchal1-Jan-10 19:14 
AnswerRe: Creating Trial Version software Pin
DaveAuld1-Jan-10 19:34
professionalDaveAuld1-Jan-10 19:34 
QuestionUse controls who are creating dynamically Pin
ivo751-Jan-10 8:01
ivo751-Jan-10 8:01 
AnswerRe: Use controls who are creating dynamically Pin
nlarson111-Jan-10 12:46
nlarson111-Jan-10 12:46 
GeneralRe: Use controls who are creating dynamically Pin
ivo751-Jan-10 23:21
ivo751-Jan-10 23:21 
AnswerRe: Use controls who are creating dynamically Pin
shravan raval2-Jan-10 4:20
shravan raval2-Jan-10 4:20 
Questionfont based text editor Pin
sarcino1-Jan-10 5:30
sarcino1-Jan-10 5:30 
AnswerRe: font based text editor Pin
sarcino1-Jan-10 8:01
sarcino1-Jan-10 8:01 
GeneralRe: font based text editor Pin
Smithers-Jones1-Jan-10 10:40
Smithers-Jones1-Jan-10 10:40 
GeneralRe: font based text editor Pin
sarcino1-Jan-10 11:25
sarcino1-Jan-10 11:25 
Questioni need help with image compression? Pin
sheshe881-Jan-10 5:05
sheshe881-Jan-10 5:05 
QuestionSplitting a .txt file into lots of textboxes in vb6 Pin
offroaderdan1-Jan-10 0:16
offroaderdan1-Jan-10 0:16 
AnswerRe: Splitting a .txt file into lots of textboxes in vb6 Pin
powerdown1-Jan-10 6:08
powerdown1-Jan-10 6:08 
Questionhow to solve zipe files with space ? [modified] Pin
Golden Jing31-Dec-09 22:50
Golden Jing31-Dec-09 22:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.