raschietto icon indicating copy to clipboard operation
raschietto copied to clipboard

Different results when scrapping on a Centos machine

Open alexxgarci opened this issue 6 years ago • 0 comments

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!

alexxgarci avatar Jun 26 '18 10:06 alexxgarci