Page 10 - Python for Everybody
P. 10

x CONTENTS
13 Using Web Services 155 13.1 eXtensibleMarkupLanguage-XML................. 155 13.2 ParsingXML.............................. 156 13.3 Loopingthroughnodes ........................ 157 13.4 JavaScriptObjectNotation-JSON ................. 158 13.5 ParsingJSON ............................. 159 13.6 ApplicationProgrammingInterfaces................. 160 13.7 SecurityandAPIusage .........................161 13.8 Glossary................................. 162 13.9 Application1: Googlegeocodingwebservice . . . . . . . . . . . . 162 13.10 Application2:Twitter......................... 165
14 Object-oriented programming 171 14.1 Managinglargerprograms........................171 14.2 Gettingstarted............................. 172 14.3 Usingobjects.............................. 172 14.4 Startingwithprograms ........................ 173 14.5 Subdividingaproblem......................... 175 14.6 OurfirstPythonobject ........................ 176 14.7 Classesastypes ............................ 178 14.8 Objectlifecycle............................. 179 14.9 Multipleinstances ........................... 180 14.10 Inheritance ................................181 14.11Summary................................ 182 14.12 Glossary................................. 183
15 Using Databases and SQL 185 15.1 Whatisadatabase?.......................... 185 15.2 Databaseconcepts........................... 185 15.3 DatabaseBrowserforSQLite..................... 186 15.4 Creatingadatabasetable....................... 186 15.5 StructuredQueryLanguagesummary ................ 189 15.6 SpideringTwitterusingadatabase...................191 15.7 Basicdatamodeling.......................... 196 15.8 Programmingwithmultipletables .................. 197































































































   8   9   10   11   12