# Getting data from a website!

**URL:** <https://forums.unrealengine.com/t/getting-data-from-a-website/357511>\
**Category:** C++\
**Tags:** web, unreal-engine, question, CPP\
**Created:** [May 15, 2016, 2:52pm UTC](https://forums.unrealengine.com/t/getting-data-from-a-website/357511 "2016-05-15T14:52:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![NeverFunny](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@NeverFunny](https://forums.unrealengine.com/u/NeverFunny)\
**Post date:** [May 15, 2016, 2:52pm UTC](https://forums.unrealengine.com/t/getting-data-from-a-website/357511/1 "2016-05-15T14:52:11Z")

</div>

Hello, I have a project for school in which i have to get the data from a website(like amazon) and print it. I have to get the data about consoles and games for consoles. Specifications, prices etc. I usually would try it in Code Blocks but i would like to do it with Unreal Engine. I have to do it for oop class, object oriented programming(with c++). My question is how can i get the data from the website?I have searched on google about this but couldn’t find anything for unreal engine. Thank you for reading!

---

<div class="post-metadata">

**Author:** ![Shadowriver](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Shadowriver](https://forums.unrealengine.com/u/Shadowriver)\
**Post date:** [May 15, 2016, 7:16pm UTC](https://forums.unrealengine.com/t/getting-data-from-a-website/357511/2 "2016-05-15T19:16:32Z")

</div>

UE4 provides HTTP API which let you download data from HTTP servers, i explained how to use them here

> **[Reading a file online](https://forums.unrealengine.com/questions/325380/reading-a-file-online.html)**
>
> I need to read a sequence of bytes stored in a basic txt file which can be found at a specific url. With a local file path I can use SaveFileToArray() function to store the bytes in a uint8 array, how can I do the same with the given file url?

UE4 don’t provide HTML interpration/ripping APIs maybe you can do something with XML reading APIs or somehow code the way to find specific data from website, note that some data on websites are downloaded extra data using JavaScript and AJAX which simple download of HTML won’t get. So i recommend you to use websites APIs via HTTP where or XML is used, data simpler to process, i’m not sure if amazon provides such APIs

Since you do this for study, i recommend you to learn about HTTP protocol first to know how web browsing looks like on network layer

> **[HTTP](https://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol)**
>
> The Hypertext Transfer Protocol (HTTP) is an application layer protocol in the Internet protocol suite model for distributed, collaborative, hypermedia information systems. HTTP is the foundation of data communication for the World Wide Web, where hypertext documents include hyperlinks to other resources that the user can easily access, for example by a mouse click or by tapping the screen in a web browser.
> Development of HTTP was initiated by Tim Berners-Lee at CERN in 1989 and summarized in ...

---

<div class="post-metadata">

**Author:** ![Tomas34567899](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Tomas34567899](https://forums.unrealengine.com/u/Tomas34567899)\
**Post date:** [May 5, 2023, 3:10pm UTC](https://forums.unrealengine.com/t/getting-data-from-a-website/357511/3 "2023-05-05T15:10:05Z")

</div>

Hi, I have done a python web scraper code and using it in unreal engine 5 for copying data like names and prices from a furniture website. I could get access to python libraries such as beautifulsoup and get the data to be displayed in a unreal engine UI widget in real time and loop through the data with the UI buttons. If you need help add me on discord: Credendo\_Vides#6485
