BP Forums
Extracting Data From A Website - Printable Version

+- BP Forums (https://bpforums.info)
+-- Forum: Archived Forums (https://bpforums.info/forumdisplay.php?fid=55)
+--- Forum: Archived Forums (https://bpforums.info/forumdisplay.php?fid=56)
+---- Forum: VB.NET (Visual Basic 2010/2008) (https://bpforums.info/forumdisplay.php?fid=8)
+----- Forum: Programming Help (https://bpforums.info/forumdisplay.php?fid=9)
+----- Thread: Extracting Data From A Website (/showthread.php?tid=527)



Extracting Data From A Website - Bradley - 05-06-2012

Hi there Team,
Just started a new project for a charity called Citizens Advice Bauru and wanted to know if it was possible to extract data from a website and display that text only in a textbox so the information is up to date it takes that information off the website and puts it in a textbox. Or to display that information in a web browser but not interested in pictures of links just the text from an immediate page <Front Page>

Here is an example


http://i877.photobucket.com/albums/ab333/BJseal91/untitled1.jpg

Website: <!-- m --><a class="postlink" href="http://www.briteccomputers.co.uk">http://www.briteccomputers.co.uk</a><!-- m -->
If this is not possible that is also fine as it will give me something to get my teeth stuck in to at another time and I will try and find a way around it and tell them it can’t be done <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->

All help is appreciated and noted for future reference

Kind Regards

Bradley


Re: Extracting Data From A Website - xolara - 05-07-2012

i belive there is a command in the webbrowser component that says text-only Maybe try that <!-- sSmile --><img src="{SMILIES_PATH}/icon_e_smile.gif" alt="Smile" title="Smile" /><!-- sSmile -->


Re: Extracting Data From A Website - brandonio21 - 05-07-2012

If Xolara's suggestion doesn't work then you can get the HTML code of the webpage using .DocumentText and extract text that may have h1, h2, h3, p, etc. tags.


Re: Extracting Data From A Website - Bradley - 05-10-2012

Thank you both for your help,
I was unable to find such a command that does this and not sure how to strip the text so going to solve this problem another time thanks for your replies

Kind Regards

Bradley