- Flask By Example
- Gareth Dwyer
- 260字
- 2021-07-09 20:06:53
Chapter 2. Getting Started with Our Headlines Project
Now that our Hello World application is up and running, we have all the groundwork in place to create a more useful application. Over the next few chapters, we'll create a Headlines application that displays up-to-date news headlines, weather information, and currency exchange rates to our users.
In this chapter, we'll introduce RSS feeds and show how to use them to automatically retrieve recent news articles from specific publications. In the next chapter, we'll discuss how to use templates to display headlines and summaries of the retrieved articles to our users. Chapter 4, User Input for Our Headlines Page Project, will show you how to get input from users so that they can customize their experience and will also look at how to add weather and currency data to our application. We'll finish off the project in Chapter 5, Improving the User Experience of Our Headlines Project, by adding some CSS styles and looking at how to remember our users' preferences from one visit to the next.
By the end of this chapter, you'll have learned how to create a more complex Flask application. We'll pull raw data from real-world news stories and build up HTML formatting to display this to our user. You'll also learn more about routing—that is, having different URLs trigger different parts of our application's code.
In this chapter, we will cover the following topics:
- Setting up our project and a Git repository
- Creating a new Flask application
- Introduction to RSS and RSS feeds
- Mastering Concurrency Programming with Java 8
- INSTANT Mock Testing with PowerMock
- Kubernetes實(shí)戰(zhàn)
- 數(shù)據(jù)結(jié)構(gòu)和算法基礎(chǔ)(Java語(yǔ)言實(shí)現(xiàn))
- 簡(jiǎn)單高效LATEX
- 算法基礎(chǔ):打開程序設(shè)計(jì)之門
- Wireshark Network Security
- 機(jī)器人Python青少年編程開發(fā)實(shí)例
- Python高級(jí)編程
- 你不知道的JavaScript(中卷)
- Android 應(yīng)用案例開發(fā)大全(第3版)
- Visual FoxPro程序設(shè)計(jì)習(xí)題集及實(shí)驗(yàn)指導(dǎo)(第四版)
- Java網(wǎng)絡(luò)編程核心技術(shù)詳解(視頻微課版)
- Learning jQuery(Fourth Edition)
- Scratch·愛編程的藝術(shù)家