Python Forum
Can anyone help me successfully run this code?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Can anyone help me successfully run this code?
#22
(Sep-17-2023, 03:28 PM)TheMouseAvenger Wrote: P.S.: OK, OK, *one* last question: I don't see a "G" drive anywhere on my computer! What should I do?
Ahh so in post#19 you just copy my code whiteout using quote.
I did think that you did same as me.

Just follow what exactly what do in post#16,post back if you have trouble and show you output.
You really struggle with basic understating of basic OS stuff and Python.
the-great-suspender-restore-urls is a really simple tool and is CLI tool which means you use from command line also you open cmd,
then do command in folder where you have your .json files.

Here from start in cmd
Microsoft Windows [Version 10.0.19045.3448]

C:\Users>cd ..

# Install
C:\>pip install the-great-suspender-restore-urls
Requirement already satisfied: the-great-suspender-restore-urls in c:\python311\
lib\site-packages (0.4)

# Use help
C:\>restore-the-great-suspender-urls --help
usage: restore-the-great-suspender-urls [-h] --in-file IN_FILE --out-file
                                        OUT_FILE
                                        [--session-name-suffix SESSION_NAME_SUFF
IX]
                                        [--extension-id EXTENSION_ID]
                                        [--verbose]

Restore the broken URLs of the Great Suspender browser extension

options:
  -h, --help            show this help message and exit
  --in-file IN_FILE     Input file. Could be relative (to current directory)
  --out-file OUT_FILE   Output file. Could be relative (to current directory)
  --session-name-suffix SESSION_NAME_SUFFIX
                        Session name suffix. Defaults to ` - cleaned`.
  --extension-id EXTENSION_ID
                        ID of ``The Great Suspender`` extension. If left
                        blank, regularexpression match will be used.
  --verbose             Verbose output.

# cd to folder code,you cd to your folder where .json files are
C:\>cd code

# In folder code i have tabs.json
C:\code>restore-the-great-suspender-urls --in-file=tabs.json --out-file=tabs-restored.json
# No errors 

C:\code>
Reply


Messages In This Thread
RE: Can anyone help me successfully run this code? - by snippsat - Sep-17-2023, 04:13 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  how do I successfully use PDO with my ODBC for MSSQL? cyberion1985 3 6,768 Jun-26-2018, 04:44 PM
Last Post: Maverick494
  Cannot successfully install NumPy aniketmone2017 3 7,513 Dec-29-2016, 02:14 PM
Last Post: sparkz_alot

Forum Jump:

User Panel Messages

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