Skip to content

carlesm/SITWLabs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sistemes i Tecnologies Web - Labs

This repo keeps some Labs for SITW. Should be checked out step by step to follow the labs.

Repo structure

  • Basic Web Basic Web client access (before HTTP REST). No JSON, no XML.

    Before: Must have bitnami-django stack Must have developer toolbar (firefox or chrome)

    Order:

      clientweb.py
          web client
          urllib2, beautifulsoup4
          Empty client -> web client -> parse -> print
    
      getweather.py
          wundergroud client
          urllib2
          must get developer key (first argument)
          http://www.wunderground.com/weather/api/
          First draft (still no XML/JSON) using beatifulsoup4
    
      getweather-requests.py
          pip install requests
          Requests lib version of getweather.py
    
      getweather-xml-minidom.py
          XML with minidom
    
      getweather-xml-untangle.py
          pip install untangle
          XML using untangle
    
      getweather-xml-xmltodict.py
          pip install xmltodict (beware xmldict)
          XML with XMLTODICT (more JSON-like)
    
      getweather-json.py
          JSON version
          Too long version (dict -> dict)
    
      getweather-json-short.py
          JSON shorter version
          returning partial dict
    

Releases

No releases published

Packages

No packages published

Languages