Is there a way to make DuckDuckGo send the page source as multiple lines?

Pecon7 Pecon7
Created: 4 years and 6 months ago • Updated: 4 years and 6 months ago
More for personal use/code hobbying really, but I'm making a mod for a game called Blockland that can query DuckDuckGo for quick answer results. But the game engine has a limitation that causes it to crash when sent strings that are extremely long (10000+ characters), and this has come up because DuckDuckGo appears to send the HTML source all in a single line. Is there a debug parameter or something I can use where the server will send the source in a more 'normal' format?

This forum has been archived

Thank you all for the many comments, questions and suggestions. Particular thanks go to user x.15a2 for constantly monitoring, replying and helping so many users here. To continue these discussions, please head over to the DuckDuckGo subreddit.


jaryd
You might want to look at the DuckDuckGo API . By using it, you can get DuckDuckGo instant answers in JSON or XML format.

For example, https://api.duckduckgo.com/?q=DuckDuckGo...
posted by jaryd Staff4 years and 6 months ago Link
Pecon7
Thanks! This helps a lot.
posted by Pecon7 4 years and 6 months ago Link