TAILIEUCHUNG - Beginning PythonFrom Novice to Professional, Second Edition 2008 phần 8

và đặt một bản sao của chào. py trong xây dựng / lib. Các thư mục con xây dựng là một loại khu vực làm việc nơi Distutils lắp ráp một gói phần mềm (và biên dịch các thư viện mở rộng, ví dụ). Bạn không thực sự cần để chạy các lệnh xây dựng khi cài đặt, bởi vì nó sẽ được chạy tự động, nếu cần thiết, khi bạn chạy lệnh cài đặt. | CHAPTER 23 Project 4 In the News I n this project you see how you go from a simple prototype without any form of abstraction no functions no classes to a generic system in which some important abstractions have been added. Also you get a brief introduction to the nntplib library which lets you interact with Network News Transfer Protocol NNTP servers. NNTP is a standard network protocol for managing messages posted on Usenet discussion groups. NNTP servers form a global network that collectively manages these newsgroups and through an NNTP client also called a newsreader you can post and read messages. Most recent web browsers include NNTP clients and separate clients exist as well. The main network of NNTP servers called Usenet was established in 1980 although the NNTP protocol wasn t used until 1985 . Compared to current Web trends this is quite old school but most of the Internet is based to some degree on such old-school technologies 1 and it probably doesn t hurt to play around with the low-level stuff a bit. Also you could always replace the NNTP stuff in this chapter with some news-gathering module of your own perhaps using the web API of some social networking site like Facebook or MySpace . What s the Problem The program you write in this project will be an information-gathering agent a program that can gather information more specifically news and compile a report for you. Given the network functionality you have already encountered that might not seem very difficult and it isn t really. But in this project you go a bit beyond the simple download a file with urllib approach. You use another network library that is a bit more difficult to use than urllib namely nntplib. In addition you get to refactor the program to allow many types of news sources and various types of destinations making a clear separation between the front end and the back end with the main engine in the middle. 1. Did you know for example that the discussion groups at http .

TỪ KHÓA LIÊN QUAN
TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.