Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Different results when scrapping on a Centos machine #2

Open
alexxgarci opened this issue Jun 26, 2018 · 0 comments
Open

Different results when scrapping on a Centos machine #2

alexxgarci opened this issue Jun 26, 2018 · 0 comments

Comments

@alexxgarci
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant