maximedrn / opensea-automatic-bulk-upload-and-sale

A Selenium Python bot to automatically and bulk upload/ mint and list your NFTs on OpenSea. All metadata compatible, Ethereum and Polygon blockchains supported, reCAPTCHA solvers included.
GNU General Public License v3.0
326 stars 109 forks source link

Deletion tool: "Invalid control character at: line 4 column 177 (char 201)". #378

Closed janbuhh closed 1 year ago

janbuhh commented 1 year ago

System: Windows 10 / Powershell as administrator Chrome 105.0.5195.127 Firefox 105.0.1

Downloading the ChromeDriver. ChromeDriver downloaded:
C:\Users\jan\.wdm\drivers\chromedriver\win32\105.0.5195.52\chromedriver.exe
Something went wrong.
Invalid control character at: line 4 column 177 (char 201)
maximedrn commented 1 year ago

I'm sorry but this error means everything and nothing 😅 Can you try this file so I can know the full error.

Also make sure you are using Python 3 and not Python 2.

Edit: send me the metadata file used, I think the error comes from the file.

main.zip

janbuhh commented 1 year ago

Thanks for your fast answer. I´m using Python 3.9.11

The metadata file could be the problem. I used the sales.json as a template as you wrote... errors are possible. delete.zip

Here my traceback:

Traceback (most recent call last): File "D:\opensea-automatic-bulk-upload-and-sale-master\main.py", line 171, in wallet, reader, structure, save, recaptcha, delete = main( File "D:\opensea-automatic-bulk-upload-and-sale-master\main.py", line 133, in main reader = Reader(file) File "D:\opensea-automatic-bulk-upload-and-sale-master\app\common\reader.py", line 50, in init eval(f'self.extract_{self.extension}_file()') File "", line 1, in File "D:\opensea-automatic-bulk-upload-and-sale-master\app\common\reader.py", line 58, in extract_json_file self.file = loads(file.read())['nft'] File "C:\Program Files\Python39\lib\json__init__.py", line 346, in loads return _default_decoder.decode(s) File "C:\Program Files\Python39\lib\json\decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "C:\Program Files\Python39\lib\json\decoder.py", line 353, in raw_decode obj, end = self.scan_once(s, idx) json.decoder.JSONDecodeError: Invalid control character at: line 4 column 177 (char 201)

maximedrn commented 1 year ago

It comes from the file:

It should be:

{
    "nft": [
        {
            "nft_url": "https://opensea.io/assets/ethereum/0x495f947276749ce646f68ac8c248420045cb7b5e/51160884721344825673184274006259840960010599994099796333647637833913101975553"
        },
        {
            "nft_url": "https://opensea.io/assets/ethereum/0x495f947276749ce646f68ac8c248420045cb7b5e/51160884721344825673184274006259840960010599994099796333647637832813590347777"
        }
    ]
}

Instead of:

{
     "nft": [
       {
         "nft_url": "https://opensea.io/assets/ethereum/0x495f947276749ce646f68ac8c248420045cb7b5e/51160884721344825673184274006259840960010599994099796333647637833913101975553    "//,
        },
       {
         "nft_url": "https://opensea.io/assets/ethereum/0x495f947276749ce646f68ac8c248420045cb7b5e/51160884721344825673184274006259840960010599994099796333647637832813590347777"//,
        }//,
       ]
   }

Also, make sure the NFTs are dereferenced if they are on Ethereum. The tool will not confirm a contract that requires a gas fee.

janbuhh commented 1 year ago

Thanks, that helped!