daily pastebin goal
33%
SHARE
TWEET

Untitled

a guest Feb 21st, 2019 75 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import urllib2
  2. from bs4 import BeautifulSoup
  3.  
  4. class BaseParser:
  5.     def __init__(
  6.     self,
  7.     source=None,
  8.     asset=None,
  9.     dest=None
  10.     ):
  11.         """
  12.         params:
  13.             @param source_url String: where to scrape the content
  14.             @param asset String:  the target currency / asset
  15.             @dest String: drstination to save the result
  16.             @return Return nothing
  17.         """
  18.         self.source = source
  19.         self.asset = asset
  20.         self.dest = dest
  21.    
  22.     def load_source():
  23.         pass
  24. class BankiParser:
  25.     def __init__(self,
  26.         source=None,
  27.         asset=None,
  28.         dest=None
  29.     ):
  30.         super(type(self)).__init__(source=None, asset=None, dest=None)
  31. # class BankiParser():
  32. #     def __init__(self,
  33. #         source=None,
  34. #         asset=None,
  35. #         dest=None
  36. #     ):
  37. #         super(type(BankiParser).__init__(self.super(), asset, dest)
  38.  
  39. if __name__ == "__main__":
  40.     banki_eur_parser = BankiParser()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top