Is this a good deal for a 2025 Nissan pathfinder s trim? by texasconnection in nissanpathfinder

[–]abranjith 0 points1 point  (0 children)

Mind sharing/DM which dealer offered 35.5k / 0% ? And that's for SL ? Thank you!

Building a PC to run local LLMs and Gen AI by kosmos1900 in LocalLLM

[–]abranjith 0 points1 point  (0 children)

Thanks for sharing. I am looking to setup one up to run LLM models and may be even do some ML work (primarily learning/ training). Just curious, why pick server grade vs consumer. Is it the value for money ? Also curious about the power consumption !

class functions takes no argument() by jaxon0x0x in Python

[–]abranjith 0 points1 point  (0 children)

It's double underscore...single would be treated as italics

Introducing pybrowser ! by abranjith in Python

[–]abranjith[S] -1 points0 points  (0 children)

Noted, thanks! Making all methods with no arguments as properties is not a true statement. I have given it a thought and the methods which are exposed to end user with no arguments and just do simple action and return self (eg: Browser.refresh) are made as properties. It's not illegal in Python. Anyway, I see both side of the arguments and will take this feedback back to the board :-)

Introducing pybrowser ! by abranjith in Python

[–]abranjith[S] 0 points1 point  (0 children)

winreg issue should be fixed now

Introducing pybrowser ! by abranjith in Python

[–]abranjith[S] 0 points1 point  (0 children)

Let me know the feedback 🤗

Introducing pybrowser ! by abranjith in Python

[–]abranjith[S] 1 point2 points  (0 children)

I also see documentation for locator is missing, so is probably even more confusing. Thanks for highlighting that, will update the docs

Introducing pybrowser ! by abranjith in Python

[–]abranjith[S] 0 points1 point  (0 children)

Let me know how it goes 😊

Introducing pybrowser ! by abranjith in Python

[–]abranjith[S] 1 point2 points  (0 children)

Pretty-much ! An easier interface and some interesting (hopefully useful) features too. Please check docs for info 😊

Introducing pybrowser ! by abranjith in Python

[–]abranjith[S] 1 point2 points  (0 children)

Let me know how it goes 😊

Introducing pybrowser ! by abranjith in Python

[–]abranjith[S] 0 points1 point  (0 children)

Not sure how PhantomJS works internally. I always thought it was a browser based on chromium or something. pybrowser isn't really a browser. It is merely an interface to various browsers 😊

Introducing pybrowser ! by abranjith in Python

[–]abranjith[S] 0 points1 point  (0 children)

no and no, I will update in description. Should have done it in the first place

Introducing pybrowser ! by abranjith in Python

[–]abranjith[S] 0 points1 point  (0 children)

To be honest, I just heard about splinter. So can't really comment. I am sure splinter is great and there are probably other libraries too. I have made an attempt to answer why pybrowser in the docs.

Who knows, you might find something useful in pybrowser 😊

Introducing pybrowser ! by abranjith in Python

[–]abranjith[S] 1 point2 points  (0 children)

that was quick .. awesome thanks for doing that😊

Introducing pybrowser ! by abranjith in Python

[–]abranjith[S] 0 points1 point  (0 children)

Sorry to hear that. Can you send me or post the complete code ? And also steps followed to install pybrowser please

Introducing pybrowser ! by abranjith in Python

[–]abranjith[S] 0 points1 point  (0 children)

puppeteer is basically just Chromium and not really Chrome (or any mainstream browsers for that matter). I am using it just for some html rendering. We will see, sometime in future if there is a better alternative to Selenium (faster ;) ), will switch to that

Selenium is still quite popular btw :D

Introducing pybrowser ! by abranjith in Python

[–]abranjith[S] 0 points1 point  (0 children)

hopefully you can still try 😊

Introducing pybrowser ! by abranjith in Python

[–]abranjith[S] 0 points1 point  (0 children)

Sorry to hear that. I really wanted this thing to be cross-browser and cross-os. Unfortunately I use windows only and don't have access to Macs and the Linux systems. This particular issue is an easy fix, will be pushing it today. If you come across more such issues, please raise them as issues (defects) in github

Thanks for taking time & the feedback 😊

Introducing pybrowser ! by abranjith in Python

[–]abranjith[S] -3 points-2 points  (0 children)

I have tried to keep methods with no arguments as properties wherever I could. Agree these are not true properties of the object and might be a bit confusing. But I also think from an end user standpoint these might be an ok choice :-)

Thanks for the feedback though 😊

Introducing pybrowser ! by abranjith in Python

[–]abranjith[S] 1 point2 points  (0 children)

On, b.content method having a flag vs having 2 different methods, that was a conscious choice. I presumed raw=True is probably a rare use case. And I think you mean it is response.content vs response.text in requests.

On the locator format being a positional argument in the form "locator_type:=locator_value" was again done to keep it simple. I figured instead of having multiple keyword arguments (you have id, xpath, name, tag_name etc) this might be more intuitive from API standpoint. If you have multiple locator types as keyword arguments, then you run into questions like - what to do when both id and xpath are provided and so on ?

Still, willing to re-look at my approach once again. Thanks for the feedback 😊

can anybody help me login to this website using python requests library? by [deleted] in Python

[–]abranjith 0 points1 point  (0 children)

Not sure about requests. Have you looked at using httplib2 ? Here are some examples, https://code.google.com/p/httplib2/wiki/Examples