Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 964843
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T01:53:48+00:00 2026-05-16T01:53:48+00:00

I am using SimpleHtmlDOM PHP quite successfully to scrape some of my favorite webpages.

  • 0

I am using SimpleHtmlDOM PHP quite successfully to scrape some of my favorite webpages. Some of these pages, however, require me to log in before I can get at the information that I really care about. Does anyone know how (or if it’s possible) to get this library to access a page that requires a username and password be enterred before you gain access to the page? Everything I’ve done to date starts with something like…

$html = file_get_html('http://www.google.com/');
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T01:53:49+00:00Added an answer on May 16, 2026 at 1:53 am

    Very few sites use authentication mechanisms that are identical, so there’s no one way to always authenticate with a site.

    Your best bet will be to use cURL and make your scraper look like a real browser. This means using cookies (search for "cookie" on the page, you might want to use a cookie file/jar) and storing them somewhere, navigating to the login form, submitting it successfully, then continuing to use that "browser" session to perform your scraping.

    Please make sure that the sites don’t mind being scraped in this way. If discovered, you may be banned from the site depending on how much the site owners dislike scraping.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using ASP.NET MVC there are situations (such as form submission) that may require a
Using C# .NET 3.5 and WCF, I'm trying to write out some of the
Using JDeveloper , I started developing a set of web pages for a project
I'm trying to select either a class or an id using PHP Simple HTML
I'm using simplehtmldom to parse html and I'm stuck in parsing plaintext located outside
I am trying to write a web scraper using simplehtmldom. I want to get
Using this code with simplehtmldom script ( http://simplehtmldom.sourceforge.net/manual.htm ): function file_get_html() { $dom =
I am using simplehtmldom class to get all images from a website, i am
Using PHP, I'm trying to give each specific text its own variable. I believe
I am attempting to pull some information from my tnsnames file using regex. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.