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

Newbie Help Loggin In #55

Open
EnGlamdring opened this issue Jul 7, 2018 · 3 comments
Open

Newbie Help Loggin In #55

EnGlamdring opened this issue Jul 7, 2018 · 3 comments

Comments

@EnGlamdring
Copy link

When I execute the following script...

def extractsms(htmlsms) :
    """
    extractsms  --  extract SMS messages from BeautifulSoup tree of Google Voice SMS HTML.

    Output is a list of dictionaries, one per message.
    """
    msgitems = []										# accum message items here
    #	Extract all conversations by searching for a DIV with an ID at top level.
    tree = bs4.BeautifulSoup(htmlsms)			# parse HTML into tree
    conversations = tree.findAll("div",attrs={"id" : True},recursive=False)
    for conversation in conversations :
        #	For each conversation, extract each row, which is one SMS message.
        rows = conversation.findAll(attrs={"class" : "gc-message-sms-row"})
        for row in rows :								# for all rows
            #	For each row, which is one message, extract all the fields.
            msgitem = {"id" : conversation["id"]}		# tag this message with conversation ID
            spans = row.findAll("span",attrs={"class" : True}, recursive=False)
            for span in spans :							# for all spans in row
                cl = span["class"].replace('gc-message-sms-', '')
                msgitem[cl] = (" ".join(span.findAll(text=True))).strip()	# put text in dict
            msgitems.append(msgitem)					# add msg dictionary to list
    return msgitems
    
voice = Voice()
voice.login()

voice.sms()
for msg in extractsms(voice.sms.html):
    print(str(msg))

I get this error....

Traceback (most recent call last): File "<stdin>", line 1, in <module> File "C:\ProgramData\Anaconda3\lib\site-packages\googlevoice\voice.py", line 60, in login email = config.email File "C:\ProgramData\Anaconda3\lib\site-packages\googlevoice\conf.py", line 55, in <lambda> email = property(lambda self: self.get('email', 'auth')) File "C:\ProgramData\Anaconda3\lib\site-packages\googlevoice\conf.py", line 35, in get return ConfigParser.get(self, section, option).strip() or None File "C:\ProgramData\Anaconda3\lib\configparser.py", line 800, in get d) File "C:\ProgramData\Anaconda3\lib\configparser.py", line 394, in before_get self._interpolate_some(parser, option, L, value, section, defaults, 1) File "C:\ProgramData\Anaconda3\lib\configparser.py", line 407, in _interpolate_some rawval = parser.get(section, option, raw=True, fallback=rest) TypeError: get() got an unexpected keyword argument 'raw'
I found the config file and put the username and password in but am stuck.

Any ideas?

@StuckInLoop
Copy link

same, having issues logging in

@chotaGit
Copy link

chotaGit commented Jul 31, 2018

I am getting the following error and am unable to login:

File "D:\Apps\Python\lib\site-packages\googlevoice\voice.py", line 66, in login
galx = matcher.search(content).group(1)
AttributeError: 'NoneType' object has no attribute 'group'

Did perform the DUC Unlock (https://accounts.google.com/b/0/displayunlockcaptcha)
Thanks a ton for any help!

Environment Details: Windows 10; Python 3.7
googlevoice Version: 1.1
Home-page: https://github.com/jaraco/pygooglevoice/tree/fork-googlevoice

@IoIxD
Copy link

IoIxD commented Oct 27, 2018

Extract the files from this repo into the following folder:

C:\Users\Owner\AppData\Local\Programs\Python\Python35-32\Lib\site-packages

jaraco pushed a commit to jaraco/googlevoice that referenced this issue Aug 28, 2022
This patch adds a job that is able to accurately signal whether
all the expectations of the required jobs to succeed are met.

This job can then be used as a source of truth for judging whether
"CI passes" and can be used in the branch protection. It also plays
a role of a convenient "gate" — this is the only job that would have
to be listed in the branch protection as opposed to listing every
single job name generated by the test matrix (and they all have
different names — it's not possible to just select one `test` job
name).

Ref: https://github.com/re-actors/alls-green#why
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants