omkarcloud / botasaurus

The All in One Framework to build Awesome Scrapers.
https://www.omkar.cloud/botasaurus/
MIT License
1.36k stars 124 forks source link

Extension path #48

Closed M-Zubair10 closed 7 months ago

M-Zubair10 commented 8 months ago

Extension class should support directory path where local extension is saved.

Found a workaround by creating a custom class given below, but if you can add it to Extension class, it will be cool. Thanks

class Extension:
    def __init__(self, path):
        self.path = path

    def load(self, *args, **kwargs):
        return os.path.abspath(self.path)
Chetan11-dev commented 7 months ago

At this point in time, we are not planning to support path's for extension.

However, should more users express interest in this feature, I will surely reconsider my decision.

Thank you for your understanding.