Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

HTML

How to pull data from BBC?

HI,

How can i pull data from BBC? i need news, Currency Conversion Rates and Markets.

SO it show on my website and i can customise the look.

Would be good if the news would be scrolling as well down strairs in the bullet point style with an image or without.

BTW im gonna make a theme out of it as well.

3 Answers

If its a specific piece of information from the bbc i would suggest taking screenshots of the information you require (print screen on a windows and cmd+ shift+ 3/4 on a mac), creating a folder in your workspace called img, adding the screenshots into your workspace img folder and then tagging them in your html with <img src="img/imgname.png" class="imgname"> and then style it in the css with the .imgname selector, if your looking to livestreem certain things from the bbc then i am unsure on this, however there may be someone else on here who can help. Hope this helps :)

Im looking to have a live data of the 'currency conversion rates bbc rss feeds' : p

i do not know as of currently but if i find out i will make sure to reply, i had a look with the inspector dev tool but i couldn't find anything, anyway good luck :)

You would need to connect with their API if they have one and pull the data using AJAX.

I used RSS i think thats the name? for news feed, but then i need market etc.. : p how owuld i do it with AJAX?

I would check out the Ajax Basics course first to get familiar with AJAX :)

I dont even know JS well enough :d well, thank you.