Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Path sacn problem
#11
What do you want to achieve in the end?

Would you like to read out certain values ​​of files in the leveldb folder?

If you know the Path_to/Chrome/User Data you can get a list of all leveldb folders (leveldb_paths)

import os
mypath = 'Path_to/Chrome/User Data'
leveldb_paths = []
 
for root, dirs, files in os.walk(mypath, topdown = False):
   for name in dirs:
      if name.startswith("leveldb"):
        leveldb_paths.append(os.path.join(root, name))
Use these paths for what you want to do.

for example:

for path in leveldb_paths:
    # your code
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  WebDriverException: Message: 'PATH TO CHROME DRIVER' executable needs to be in PATH Led_Zeppelin 1 2,150 Sep-09-2021, 01:25 PM
Last Post: Yoriz
  problem about maze path finder Simurg 2 1,906 Aug-16-2020, 01:10 PM
Last Post: Simurg
  Problem with reading a path gkiller007 30 22,678 Jan-05-2019, 10:09 PM
Last Post: snippsat
  Anaconda problem about path Leloup 1 8,052 Nov-23-2018, 05:14 PM
Last Post: Larz60+
  path.exists() problem CAHinton 2 2,867 Jul-24-2018, 05:47 PM
Last Post: CAHinton
  .pth file does not show up in sys.path when configuring path. arjunsingh2908 2 5,671 Jul-03-2018, 11:16 AM
Last Post: arjunsingh2908
  Problem with absolute path to file (Mr.Stickman Problems) SheeppOSU 3 6,165 Jun-26-2018, 10:05 AM
Last Post: Larz60+
  Problem in a path finding algorithm (counter is not working) Kowalski 3 3,219 Feb-05-2018, 01:23 PM
Last Post: Gribouillis

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020