Campaign

class cwdprophet.campaign.Campaign(campaign_url=None, browser=None, close_browser=False, quit_browser=True)[source]

Campaign Class representing a Crowdfunder campaign.

campaign_url : str
The URL of the campaign.
soup : BeautifulSoup object
The HTML document represented as a nested structure
copy()[source]

Return a copy of the Campaign object.

Returns:
(Campaign): copy of the Campaign object.
creator()[source]

Return the creator of the project.

Returns:
creator (str): Project creator
deadline()[source]

Return the deadline of the project.

Returns:
deadline (date): Project deadline in day remaining
duration()[source]

Return the lenght of the project.

Returns:
duration (int): Project the lenght of the campaign in days
location()[source]

Return the location of the project.

Returns:
location (str): Project location
title()[source]

Return the title of a campaign

Returns:
title (str): Project title
cwdprophet.campaign.load_campaign(campaign_url, browser, close_browser=False, quit_browser=True)[source]

Load a Crowdfunder campaign from a URL.

Parameters:
campaign_url (str): The URL of the campaign display (bool): Display campaign info
Returns:
(Campaign): loaded Campaign object