+ Reply to Thread
Results 1 to 4 of 4

Import Cookies from Chrome or Edge to Excel

  1. #1
    Registered User
    Join Date
    11-08-2022
    Location
    NYC
    MS-Off Ver
    Office 365
    Posts
    4

    Import Cookies from Chrome or Edge to Excel

    Hello
    I am doing web scrap using HTTP requests (Since IE retired):

    I am able to accomplish everything, except the authentication.
    My work around is authenticating manually with the browser (Chrome or Edge) and copy the cookies to Excel/VBA manually.

    Chrome stores the cookies in a SQLite data base stored at:
    %\AppData\Local\Google\Chrome\User Data\Default\Network

    I have been attempting to import using the two folloing methods:
    • VBA ADO "Microsoft ActiveX Data Objects"
    • GET DATA -> From Other sources -> From ODBC

    No success with either

    Thanks
    Victor

  2. #2
    Forum Contributor
    Join Date
    02-25-2022
    Location
    Dallas, Texas
    MS-Off Ver
    Office 365
    Posts
    174

    Re: Import Cookies from Chrome or Edge to Excel

    You could use SeleniumBasic. Example:

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    11-08-2022
    Location
    NYC
    MS-Off Ver
    Office 365
    Posts
    4

    Re: Import Cookies from Chrome or Edge to Excel

    Hey Mogul

    I have attempted with Selenium, but it gets blocked by my firewall. (No admin rights).
    My IT department will not open exceptions.

    I have atempted using UserForm with built in Web browser.
    But, it uses IE and does not even load most websites.

    Idealy Microsoft wouldve replaced all IE controls with Playwright.

    I will continue to explore the GET DATA or the ADO alternative.

    Thanks

  4. #4
    Forum Contributor
    Join Date
    02-25-2022
    Location
    Dallas, Texas
    MS-Off Ver
    Office 365
    Posts
    174

    Re: Import Cookies from Chrome or Edge to Excel

    I have used SQLite with Excel a long time ago but you need to install drivers. I would be surprised if Google does password protect and encrypt the database. It would be a security nightmare if they didn't.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Read cookies from Chrome
    By JasperD in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 01-25-2023, 06:13 PM
  2. Replies: 3
    Last Post: 10-19-2022, 11:54 AM
  3. [SOLVED] Extract data from Chrome / Edge
    By rajeshn_in in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-04-2022, 06:33 PM
  4. VBA - open webpage and save JSON file in firefox, brave, chrome, or edge
    By Josephrandall in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-19-2022, 03:24 PM
  5. Replies: 2
    Last Post: 04-26-2020, 02:23 AM
  6. how to find the forward edge and aft edge for given coordinates
    By naderassaleh in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 03-08-2014, 02:16 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1