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

Add udemy.com usufy wrapper #319

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

lopezalvar
Copy link
Contributor

No description provided.

@i3visio
Copy link
Owner

i3visio commented Apr 29, 2020

Sorry for the huuuuuge delay. We almost missed that. Could you upgrade the wrapper to be Python3 compliant and match the new specification?

The following includes a copy of the Minds wrapper as an example.

...

__author__ = "Felix Brezo, Yaiza Rubio  <[email protected]>"
__version__ = "3.0"


from osrframework.utils.platforms import Platform



class Minds(Platform):
    """<Platform> class"""
    def __init__(self):
        """Constructor with parameters

        This method permits the developer to instantiate dinamically Platform
        objects."""
        self.platformName = "Minds"
        self.tags = ["social"]
        self.modes = {
            "usufy": {
                "debug": False,
                "extra_fields": {
                    "com.i3visio.Name": '<h2>([^<]+)</h2>',
                },
                "needs_credentials": False,
                "not_found_text": "Sorry, the channel couldn't be found",
                "query_validator": "[a-z0-9A-Z_]+",
                "url": "https://www.minds.com/{placeholder}",
            }
        }

A more detailed sample can be found here

@i3visio i3visio added this to In progress in Usufy via automation Apr 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Usufy
  
In progress
Development

Successfully merging this pull request may close these issues.

None yet

2 participants