OpenSea-NFT-Stealer: Error running script
I get this error when trying to run this script
Traceback (most recent call last): File "C:\Users\17379\Desktop\OpenSea-NFT-Stealer-master\opensea.py", line 60, in <module> data = json.loads(requests.get(f"https://api.opensea.io/api/v1/assets?order_direction=asc&offset={offset}&limit=50&collection={CollectionName}&format=json").content.decode()) File "C:\Users\17379\AppData\Local\Programs\Python\Python39\lib\json\__init__.py", line 346, in loads return _default_decoder.decode(s) File "C:\Users\17379\AppData\Local\Programs\Python\Python39\lib\json\decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "C:\Users\17379\AppData\Local\Programs\Python\Python39\lib\json\decoder.py", line 355, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 18 (6 by maintainers)
first define headers with a user client like this:
you can find a userclient name on here: https://www.whatismybrowser.com/guides/the-latest-user-agent/
then change the request.get in the first for loop for data to include the headers:
and it should work again.