Hi I've got python 3 installed. Cant see the url on it ive been typing In things from the script on python lol useless with it thanks for replyWhat's the error?
Do you have a Python 3 interpreter installed? I've tried it here and it works as advertised.
You launch the script (in a shell), you open the link he shows in your browser, you authenticate to the PSN with your credentials, it opens a page that shows "redirect" so you grab the URL from your browser and past it on the shell where the script is running, it prints out various information about your ID and according to the readme what you need is the AccountID.
Is it the login url I type in on internet browser?Hi I've got python 3 installed. Cant see the url on it ive been typing In things from the script on python lol useless with it thanks for reply
I've used the script for the redirect and got it what do I type in on python before I paste it in to get it started?What's the error?
Do you have a Python 3 interpreter installed? I've tried it here and it works as advertised.
You launch the script (in a shell), you open the link he shows in your browser, you authenticate to the PSN with your credentials, it opens a page that shows "redirect" so you grab the URL from your browser and past it on the shell where the script is running, it prints out various information about your ID and according to the readme what you need is the AccountID.
I've used the script for the redirect and got it what do I type in on python before I paste it in to get it started?
/path/to/python3 /path/to/psn-account-id.py
It wasn't will copy that in. Thanks for taking the time to help me out appreciate itLet's start with the basics, if Python isn't in your command path:
Code:/path/to/python3 /path/to/psn-account-id.py
Getting invalid syntac errorIt wasn't will copy that in. Thanks for taking the time to help me out appreciate it
Hi I've got python 3 set up on my pc. If it's not to much trouble would you be able to tell me exactly what you typed into python to get script started? I've never used it before so I'm a total noob. Is it a case of typing in script leaving python open copying url logging in to psn then copying and pasting the redirect url into python? Sorry for being a pain as it's probably quite simple just struggling to grasp itI hope you didn't copied verbatim what I wrote above, as it was an example to indicate that, unless you have the Python interpreter on your command path, you should invoke it using the full path and doing the same with the path of the script (to be exact, it should be the path from the current working directory, but putting the full path would make no harm).
At least that's the requirement in every sane shell I've ever used (I would say the most insane was some ancient tcsh version on AIX or HP-UX), but assuming you are on Windos, I'm not familiar with it so I can't help you much over there...
If instead you got the error running the script, make sure you are not using a Python 2 interpreter.
$ cd /tmp ~
$ chmod +x psn-account-id.py /tmp
$ ./psn-account-id.py /tmp
########################################################
Script to determine PSN AccountID
thanks to grill2010
(This script will perform network operations.)
########################################################
Open the following URL in your Browser and log in:
https://auth.api.sonyentertainmentn...lay&prompt=always&PlatformPrivacyWs1=minimal&
After logging in, when the page shows "redirect", copy the URL from the address bar and paste it here:
>
Hi I've got python 3 set up on my pc. If it's not to much trouble would you be able to tell me exactly what you typed into python to get script started? I've never used it before so I'm a total noob. Is it a case of typing in script leaving python open copying url logging in to psn then copying and pasting the redirect url into python?
Last question I will ask before giving up lol as will be doing your head in do I type this in pythonI suggest you to look at a Python tutorial, I would guess extrapolating what I'm doing in the shell would be cumbersome but as you wish, that's what I'm typing after saving the script in the /tmp directory, the text after the $ symbol are commands:
$ cd /tmp ~
$ chmod +x psn-account-id.py /tmp
$ ./psn-account-id.py /tmp
########################################################
Script to determine PSN AccountID
thanks to grill2010
(This script will perform network operations.)
########################################################
Open the following URL in your Browser and log in:
https://auth.api.sonyentertainmentn...lay&prompt=always&PlatformPrivacyWs1=minimal&
After logging in, when the page shows "redirect", copy the URL from the address bar and paste it here:
>
Ignore the tilde and the "/tmp" at the right, that's my right prompt with the current working directory.
$ cd /tmp ~
$ chmod +x psn-account-id.py /tmp
$ ./psn-account-id.py
Before i use the url and what is the script to get it started
Right so I put that in the command path? Then thisIt won't work, unless you have a Python 3 interpreter in the command path, and the shell can understand the first line of the script (search Google with "shebang")...
#!/usr/bin/env python3
But I assure it's more simple than it seems.
Feel like I'm just wasting your time I thought it would just be a case of copying something from the script onto python then using the url pasting it then hitting return. Thanks very much for taking the time to try and help me with this appreciate itNot exactly, the command path it's an environment variable that contains all the directories with commands that your shell should parse:
$ which python3
/usr/bin/python3
$ echo $PATH
usr/bin:/bin:/usr/games:/sbin:/usr/sbin:/usr/local/bin
but yeah, the script is waiting that you paste the URL with the browser stuck in the redirect page.
Trying it just now but it's coming up windows powershellI just tried it and it worked for me and I was able to get my AccountID.
This is what I did:
1. download the source folder from here:https://github.com/thestr4ng3r/chiaki/archive/master.zip
2. extract the chiaki-master.zip and go to the scripts folder.
3. hold the shift key and right click anywhere in the empty space in the folder and select 'open command window here'
4. when the cmd window opens type: psn-account-id.py
5. copy and run the full url it gives you into a browser window.
6. a PSN login page will now be in your browser, enter your PSN username and password.
7. a new page will open just saying redirect. Copy the URL of this page and paste it into the open cmd window.
8. press enter and it will produce some info and you your AccountID will be at the bottom.
hope this helps.
EDIT:
if just typing psn-account-id.py does not work try python3 psn-account-id.py
Thanks tried that a black box just appeared then disappearedyou can use power shell too.
in powershell type .\psn-account-id.py
that will open the script in a cmd window for you.
Mines was chiaki\chiaki-master\scripts\psn-account-id and it said unspecified path. Honestly useless with this stuff lolclick on the windows button and type cmd.
select Command Prompt
when that opens enter the full path to where your psn-account-id.py script is.
eg. mine is: G:\DOWNLOADS\chiaki-master\chiaki-master\scripts\psn-account-id.py