filmweb.py 文件源码

python
阅读 31 收藏 0 点赞 0 评论 0

项目:pyfilmweb 作者: lopezloo 项目源码 文件源码
def login(self, name, password):
      """Authenticates user.

      :param str name: account name
      :param str password: account password

      .. note::
         Throws :class:`exceptions.RequestFailed` (20, 'badCreadentials') if bad credentials are passed.
      """
      self.session = requests.session()

      remember = True
      data = self._request('login', [name, password, int(remember)], hmethod='POST')
      return LoggedUser(fw=self, uid=data[3], name=data[0], img=common.img_path_to_relative(data[1]), sex=data[4], birth_date=data[5])

   # This method is one big TODO.
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号