Odoo Aide

2

1
2 Answers
0
Avatar

Rihene

--Rihene--

1273
| 5 2 9
Tunis, France
--Rihene--


Rihene
13/08/2015 05:07

In Python 2, use urllib2 which comes with the standard library.


import urllib2

response = urllib2.urlopen('http://www.odoo.com/')

html = response.read()

This is the most basic way to use the library, minus any error handling. You can also do more complex stuff such as changing headers. The documentation can be found here.

https://docs.python.org/2/library/urllib2.html

Regards.

0
John
27/03/2015 14:36

did you  make progress on it?

Poser une question
Writer
Keep Informed
3 Abonné(e)s
About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register
Odoo Training Center

Access to our eLearning platform and experience all Odoo Apps through learning videos, use cases and quizzes.

Test it now