clippercard icon indicating copy to clipboard operation
clippercard copied to clipboard

getting find_all error while trying to use

Open swolfand opened this issue 9 years ago • 6 comments

markup_type=markup_type)) Traceback (most recent call last): File "/usr/local/bin/clippercard", line 9, in load_entry_point('clippercard==0.3.2', 'console_scripts', 'clippercard')() File "/Library/Python/2.7/site-packages/clippercard/main.py", line 69, in main print(clippercard.porcelain.tabular_output(session.user_profile, session.cards)) File "/Library/Python/2.7/site-packages/clippercard/client.py", line 115, in user_profile return parser.parse_profile_data(self._dashboard_content) File "/Library/Python/2.7/site-packages/clippercard/parser.py", line 111, in parse_profile_data fields = profile_data.find_all('div', attrs={'class': 'fieldData'}) AttributeError: 'NoneType' object has no attribute 'find_all'

swolfand avatar Sep 23 '15 17:09 swolfand

I'm running into the same issue using Python 2.7.10 on OSX. Any info around this?

jwlawrence avatar Apr 26 '16 02:04 jwlawrence

+1

egorvinogradov avatar May 12 '16 00:05 egorvinogradov

I changed all instances of "j_idt14" to "j_idt13" in client.py, which seems to have fixed things.

I found that in parser.py I was getting the login page, instead of the user profile page.

in client.py it was trying to login via: 'javax.faces.source': 'j_idt14:submitLogin'

but on clippercard.com/ClipperCard/loginFrame.jsf the id was 'j_idt13:submitLogin'

sermittens avatar Mar 31 '17 22:03 sermittens

the development of this project has migrated to https://github.com/clippercard/clippercard-python

recent fixes in 0.3.3 and later contains the bug fix for this

goldengate88 avatar Sep 06 '17 15:09 goldengate88

@goldengate88 how does one use this clippercard API in swift?

blai30 avatar Oct 30 '18 01:10 blai30

@blai30 - unfortunately this project itself is not the API service. This project is an unofficial API client written in Python and only supports usage within a Python application. The proper way to take advantage of the principle of the implementation is to use this project's code as a reference implementation for writing a similar http client in Swift.

(A hacky, inelegant way to get around this is to call a python process from within Swift but I highly discourage it because you're not going to be able to take advantage of the majority of the features within the library)

goldengate88 avatar Oct 30 '18 03:10 goldengate88