raschietto
raschietto copied to clipboard
Different results when scrapping on a Centos machine
Hi!
I'm implenting your scrapping library in a project. The case is when I use the library locally in a macos 10.13.4, your library works like charm. But when i run the script in a vagrant machine with Centos 7, the results are diferent.
For example:
def get_scrapped_attrib(matcher, multiple):
# Beer matcher.
matcher = Matcher(matcher)
# Html object.
return matcher(page, multiple=multiple)
def get_beer_name():
# Html name object.
name = get_scrapped_attrib(
"div.container div#div_cuerpo.row div.col-md-9 div.row div.col-md-9 h3",
False
)
# Return name.
if name is None:
return ""
else:
return name.text
When i call get_beer_name()
in my mac it returns a beer name, but in the vagrant machine, i have to return only name
without the field text
to get the result.
Any idea of what's happening?
Thanks for your help!