twitter-nuke icon indicating copy to clipboard operation
twitter-nuke copied to clipboard

JSONDecodeError

Open rishrishrish opened this issue 3 years ago • 5 comments

Hi im having an error, the following is what i got after running the script :

>> Processing your tweet.js file and converting it to a JSON.

>> Processing tweet.js file

>> Converting to processable JSON
Traceback (most recent call last):
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.2032.0_x64__qbz5n2kfra8p0\lib\runpy.py", line 188, in _run_module_as_main
    mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.2032.0_x64__qbz5n2kfra8p0\lib\runpy.py", line 111, in _get_module_details
    import(pkg_name)
  File "C:\Users\risha\Desktop\fx\scriptt.py", line 132, in <module>
    parse_json(JSON_FILE, LIKES, RETWEETS)
  File "C:\Users\risha\Desktop\fx\scriptt.py", line 68, in parse_json
    data = json.load(jfd)
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.2032.0_x64qbz5n2kfra8p0\lib\json\__init.py", line 293, in load
    return loads(fp.read(),
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.2032.0_x64qbz5n2kfra8p0\lib\json\__init.py", line 346, in loads
    return _default_decoder.decode(s)
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.2032.0_x64__qbz5n2kfra8p0\lib\json\decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.2032.0_x64__qbz5n2kfra8p0\lib\json\decoder.py", line 353, in raw_decode
    obj, end = self.scan_once(s, idx)
json.decoder.JSONDecodeError: Expecting property name enclosed in double quotes: line 2 column 3 (char 6)

rishrishrish avatar Oct 14 '21 14:10 rishrishrish

Hello @rishrishrish, thanks for opening this issue. Ensure that you are running this script inside the directory of your Twitter archive.

If it does not work even after following all the steps, I'll have to take a look at your tweet.js file to check whether the format has changed. See if this works though.

Mayur57 avatar Oct 22 '21 07:10 Mayur57

@Mayur57 i created a separate folder, and have placed the tweet.js and script there, and im sure the i have the directories correct. Also i checked the tweet.js and removed all non ascii characters already (like emojis, and other special characters) otherwise i was getting error a step before this, plus the deleter.json file also got created, so is the issue still in tweet.js file?

rishrishrish avatar Oct 22 '21 08:10 rishrishrish

@Mayur57 sorry to ping you again and again but i need to get done with this thing as soon as possible.

rishrishrish avatar Oct 31 '21 15:10 rishrishrish

still waiting -.-

rishrishrish avatar Dec 24 '21 14:12 rishrishrish

Hello, sorry for the delay. I'll look into it and update the issue soon.

Mayur57 avatar Jan 16 '22 11:01 Mayur57