Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Access Forum    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Pulling Text From Webpage
Jerry Fowler 
       
4 days ago
Still playing with my TechHelp Database. I had come across an article, and it started me thinking. Right now, I use a get statement for each item that I want data for, such as Title, Description, Transcript, Keywords...
After reading the article, I thought, why not pull the data once and then search through that data for what I need. So I came up with the following routine to "GET" the page once and save it to a textbox on a form.

DetailsPublic Function Get599Section(BlogID As Long) As String
    Dim Http As Object
    Dim HTML As String
    Dim StartPos As Long
    Dim EndPos As Long
    Dim FindText As String

    Set Http = CreateObject("MSXML2.ServerXMLHTTP.6.0")

    Http.Open "GET", _
        "https://599cd.com/blog/display-article.asp?ID=" & BlogID, _
        False

    Http.SEnd

    HTML = Http.ResponseText
    
    StartPos = InStr(HTML, "<details><summary>")

    If StartPos = 0 Then Exit Function

    EndPos = InStr(StartPos, HTML, "</span>")

    If EndPos = 0 Then Exit Function

    HTML = Mid$(HTML, StartPos, EndPos - StartPos)
    
    Forms!GetTechHelpF.ResponseText = HTML
    
End Function


After trying this 6 or seven times, I got blocked from Richard's site (and rightfully so after Richard showed me what was happing.) Does anything pop out to you guys? Last thing I did not receive any errors running this, plus nothing in my textbox on the form.
Jerry Fowler OP  @Reply  
       
3 days ago
I have been able to fix both problems since I posted this. The problem with this was that the GetTechHelpF form wasn't loaded yet. I also see why I was hitting Rick's site so much. In the loop, I had to get to the right record, it was hitting the webpage for each record several times before it. I started over on the recordset, and I am only hitting Rick's site once to get the HTML from the site.

Again, Rick, I am very sorry for the trouble
Darrin Harris  @Reply  
     
3 days ago
Hi Jerry

That's good your only hitting Ricks site once now, I'm entering the web data as I watch them, done around 1500 now.
Almost finished.
Jerry Fowler OP  @Reply  
       
3 days ago
Wow, 1500, what does that include other than TechHelp videos? I save them separately, the QuickQueries and the ones that Alex does. I know I'm missing some of his, but I have all the Quick Queries. I have 1164 of the TechHelp videos. It's a work in progress.
Darrin Harris  @Reply  
     
3 days ago
It sure is a work in progress, but it makes it a lot easer to find keep track of and take notes for every video.

It includes all YouTube video links and web links, mainly Tech Help.
Darrin Harris  @Reply  
     
3 days ago

Darrin Harris  @Reply  
     
3 days ago

Sandra Truax  @Reply  
         
3 days ago
Darrin I love this idea. I'm wondering if I could get it to work. You did good!
Darrin Harris  @Reply  
     
3 days ago
Thankyou Sandra

I'm sure you could, I've been working on a new database that imports YouTube straight into Access.
I have about five sites so far:

Computer Learning zone of course
DanielPineault
SeanMackenzie

and others.
Darrin Harris  @Reply  
     
3 days ago

Add a Reply Upload an Image
Next Unseen

 
New Feature: Comment Live View
 
 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2026 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 7/5/2026 8:47:49 PM. PLT: 1s