viewgit/index.php:465 Only variables should be passed by reference [2048]

viewgit/index.php:466 Non-static method GeSHi::get_language_name_from_extension() should not be called statically [2048]

  1. import sys
  2. sys.path.append("../")
  3. import spidy
  4.  
  5. def confirm(test):
  6.  
  7. print " => Test %s superato" % test
  8.  
  9.  
  10. print " => Provo ad ottenere i link di www.robol.it"
  11. page = spidy.Page("http://www.robol.it")
  12. if len(spidy.get_links(page)) > 0:
  13. confirm("links_1")
  14.  
  15. print " => Provo ad effettuare il test sulla pagina"
  16. page = spidy.Page("http://www.robol.it")
  17. page.add_link("http://ciccio.org")
  18. page = spidy.Page("http://www.robol.it")
  19. page.exhausted
  20. if len(page.links()) == 1:
  21. confirm("page_1")
  22.  
  23. print " => Provo ad ottenere una pagina non analizzata"
  24. page = spidy.Page()
  25. page.exhausted
  26. print " => Ho ottenuto %s" % page.url
  27. page = spidy.Page()
  28. page.exhausted
  29. print " => Ho ottenuto %s" % page.url
  30. confirm("page_2")