ScrapeNinja

פרמיום
על ידי Anthony | מְעוּדכָּן 8 days ago | Data
פּוֹפּוּלָרִיוּת

9.9 / 10

חֶבִיוֹן

3,341ms

רמת שירות

97%

Health Check

N/A

חזרה לכל הדיונים

Unescaped body

Rapid account: Akavexx
akavexx
2 years ago

Hello,

Is there any way in which we can return an unescaped body of the html page? Even the test on the site here returns escaped code. I’m not sure if we can use a function within the API to generate unescaped code or get the html page as it is. I’m using C# htmlclient.

Thank you!

Rapid account: Restyler
restyler Commented 2 years ago

Hi! ScrapeNinja returns JSON structure (serialized to string), as a response. To get the unescaped html page, you basically need to unserialize returned json (to get JSON object), and retrieve the .body property from the object.
Let me know if this helps.

Cheers!

הצטרף לדיון - הוסף תגובה למטה:

התחבר / הירשם כדי לפרסם תגובות חדשות