Code Monkey home page Code Monkey logo

Comments (7)

konstunn avatar konstunn commented on May 14, 2024

I think all you need to do is just to rename your own source code file from arsenic.py to anything else, for example, to try_arsenic.py or main.py, whatever. Cause there is a conflict / collapse between your own module and arsenic module, you know what I mean?

from arsenic.

Luciferianism avatar Luciferianism commented on May 14, 2024

I think all you need to do is just to rename your own source code file from arsenic.py to anything else, for example, to try_arsenic.py or main.py, whatever. Cause there is a conflict / collapse between your own module and arsenic module, you know what I mean?

Thanks, i renamed the file and it's working now. Just a question does this library has browser close function, i cannot find that in the documentations of arsenic. I also tried pyppeteer2, it has the await browser.close() function.

from arsenic.

konstunn avatar konstunn commented on May 14, 2024

According to my experience using arsenic if you don't have your browser running then when you do async with get_session(..), then your browser is going to be launched, do what you tell him to do by your arsenic code and then exit.

TL;DR: get_session opens browser and then closes it.

from arsenic.

Luciferianism avatar Luciferianism commented on May 14, 2024

According to my experience using arsenic if you don't have your browser running then when you do async with get_session(..), then your browser is going to be launched, do what you tell him to do by your arsenic code and then exit.

TL;DR: get_session opens browser and then closes it.

Is requests-html with asyncio a better substitute of arsenic ?, if i am just interested in loading the javascript to get the full outerhtml, i dont have to click any button or submit forms on a website.

from arsenic.

konstunn avatar konstunn commented on May 14, 2024

According to your problem you really don't need arsenic. Requests-html better suits your needs, I think.

from arsenic.

h1n054ur avatar h1n054ur commented on May 14, 2024

Hi, I am getting the same error, is there a workaround? I just pip installed it.

from arsenic.

konstunn avatar konstunn commented on May 14, 2024

Hi @h1n054ur . Make sure your module name does not clash with some others. Review your modules structure to make sure you do not have circular imports. Rework your structure if have circular imports.

from arsenic.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.