althonos / althonos/InstaLooter

'NoneType' object has no attribute 'group'

Open
#193 20 comments 7 reactions 0 assignees View on GitHub
bug
Dominant language
Python
Stars
2.1k
Forks
257
PR merge metrics
No merged PRs in 30d

Description

## Library version

*What's the installed library version ? Check with `instalooter --version`*:

```
instalooter v2.0.3
```

## Environment

*Describe here your environment, including:*

* Debian 9 Stretch
* Python 3.5.3

## Error description - runtime

When I trying to login to Instagram with instalooter, instalooter asks for 'Username' and 'Password'. It doesn't login and throws the following error:
CRITICAL 'NoneType' object has no attribute 'group'
WARNING unclosed

*If you have an issue at runtime, include the required information below:*

### Reproducible test case

```
instalooter login
```

### Expected behaviour

instalooter logs into Instagram and returns to the prompt after asking for my Username and Password

### Actual behaviour

Asks for Username and Password and then throws the following error:

**CRITICAL** 'NoneType' object has no attribute 'group'
**WARNING** unclosed

### Traceback

Traceback (most recent call last):
File "/home/acloserview/.local/lib/python3.5/site-packages/instalooter/cli/__init__.py", line 104, in main
login(args)
File "/home/acloserview/.local/lib/python3.5/site-packages/instalooter/cli/login.py", line 22, in login
InstaLooter._login(username, password)
File "/home/acloserview/.local/lib/python3.5/site-packages/instalooter/looters.py", line 143, in _login
token = get_shared_data(login.text)['config']['csrf_token']
File "/home/acloserview/.local/lib/python3.5/site-packages/instalooter/_utils.py", line 94, in get_shared_data
return json.loads(match.group(1))
AttributeError: 'NoneType' object has no attribute 'group'

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.