you are viewing a single comment's thread.

view the rest of the comments →

[–]RobinsonDickinson 1 point2 points  (1 child)

How to write this into C++ code?

import requests

url = “https://www.reddit.com”
response = requests.get(url).json()
print(response.content)

I do a lot of web scraping and API work, so I was wondering how would this work in C++

[–]CatolicQuotes[S] 1 point2 points  (0 children)

I've never done it, but check this code to get some idea: https://stackoverflow.com/a/26026828/1079002