Skip to content
This repository has been archived by the owner on Mar 29, 2024. It is now read-only.

JSONDecodeError #2

Open
rishrishrish opened this issue Oct 14, 2021 · 5 comments
Open

JSONDecodeError #2

rishrishrish opened this issue Oct 14, 2021 · 5 comments

Comments

@rishrishrish
Copy link

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)
@Mayur57
Copy link
Owner

Mayur57 commented Oct 22, 2021

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.

@rishrishrish
Copy link
Author

@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
Copy link
Author

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

@rishrishrish
Copy link
Author

still waiting -.-

@Mayur57
Copy link
Owner

Mayur57 commented Jan 16, 2022

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants