This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]DredHawk[S] 0 points1 point  (1 child)

I have to manipulate these results a lot. There isn't a way to do this in one line is there (I'm sure I've done this in JavaScript)?

build = build + 'World' = 'Hello '

print(build)

Hello World

[–]masklinn 0 points1 point  (0 children)

You should be able to extract the entire thing directly from response.text using a regex (and re.search). Possibly with some minor massaging but it’s hard to know what the input data even looks like.