#๐ problem
89 messages ยท Page 1 of 1 (latest)
@unreal ravine
Remember to:
- Ask your Python question, not if you can ask or if there's an expert who can help.
- Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
- Explain what you expect to happen and what actually happens.
:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.
@whole elk I don't get what I should do
why doesn't the json file just interpret the proxies as regular strings
ยฏ_(ใ)_/ยฏ
Ask your Python question, not if you can ask or if there's an expert who can help.
Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
Explain what you expect to happen and what actually happens.
you've been here long enough and have asked for help enough times to know how our process works
we aren't mind readers nor can we see your code or screen.
that's how I always do it
can it?
1 on its own is just fine.
sure

It's a JavaScript expression!
oh right, json is supposed to be valid java or something
then show your code and exactly why you think theres an error.
JavaScript is not Java.
JavaScript Object Notation (JSON) is a lightweight, text-based, language-independent data interchange format. It was derived from the ECMAScript Programming Language Standard. JSON defines a small set of formatting rules for the portable representation of structured data. This document removes inconsistencies with other specifications of JSON, r...
no i understand that, but i heard some weird statement about java and JSON, but i disgress
Java's a totally different language.
does proxies.json have some special value or something? I copied all the data in proxies.json and moved it to a new json file named something else and it loaded in fine
no, that's just a filename
again, you asking us to guess
you've been here to know better. what error are you getting?
You've shown us theJSON file. Now show us the code using it and the error you're getting.
are u using json.load(filename) or reading it like a txt file
bruh.
code?
then how or why are you getting an error?

the yellow in proxies.json is the thing that's confusing me
are you talking about the /r?
no
proxies.json and bob.json contain the exact same data, why is proxies.json yellow and not bob.json
The yellow just looks highlighted to me. What's confusing you?
Guessing left over from the copy/paste selection.
yeah, looks like the list has been selected
for the love of god, if you're seeing warnings or error, show them
And if you're not, please explain what's confusing.
press control-a .. does everything turn yellow
We;re all thinking that it went yellow when you selected it to copy. To show you what's selected.

sorry
Paul.. mah dude.. your making a funny right?
guys I'm being completely honest I'm not even trying to troll or be misleading. I genuienly just don't know why there is โ ๏ธ in proxies.json and not bob.json
you can click on it, to view the error.
Aye, click on it.
hover over it.
incompatible types required: object actual: array
Odd. What's the bottom of the file look like?
Well I see no problem with that file. Can you load it using the Python json module?
honestly I'm just gonna use the json file that works. proxies.json is a cursed file name for sure
for shids and giggles check everyline ends with a comma
... except the last entry in a dict or array - a JSON annoyance. It looks ok. But yes, scan all the intermediate lines by eye.
Though it complains about line 2, pretty early.
probably a slight copypasta mistake between files
Except the last one*
I copied the erroneous file data into the other one and no problems. there's no way a comma is missing otherwise the other file would've brought it up
Why are there \r(s) everywhere?
Who do we think we are, Apple??
Just weird.
i give up
and stop doing pictures plz.. if you post it we could see it easier.. i for one a lot better cause on my phone
The carriage returns are a bit odd; I assume they came from the original data omehow.
for future help, please stick to our requests, we've done it multiple times, code as text, include information, etc
data as text as well, including stuff like JSON, if its big, then use the paste service.
This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.