官术网_书友最值得收藏!

  • 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
主站蜘蛛池模板: 志丹县| 右玉县| 同仁县| 凭祥市| 衡阳县| 崇礼县| 江山市| 三门峡市| 社旗县| 册亨县| 河北省| 石屏县| 乌鲁木齐市| 逊克县| 清苑县| 大英县| 都江堰市| 会宁县| 武功县| 汉川市| 托里县| 新沂市| 祁连县| 慈利县| 武川县| 区。| 麟游县| 阜南县| 赫章县| 麻栗坡县| 玉田县| 海门市| 新巴尔虎左旗| 波密县| 南澳县| 百色市| 博罗县| 伊春市| 海城市| 伊宁市| 景德镇市|