JustAnotherArchivist / JustAnotherArchivist/snscrape
`KeyError: 'timeline'` crash on `twitter-profile` scraper
- Dominant language
- Python
- Stars
- 5.4k
- Forks
- 783
- PR merge metrics
- No merged PRs in 30d
Description
### Describe the bug
when I run:
```
/bin/snscrape --jsonl --max-results 10 twitter-profile someone
```
it throws error:
```
Traceback (most recent call last):
File "/home/ubuntu/.local/bin/snscrape", line 8, in
sys.exit(main())
File "/home/ubuntu/.local/lib/python3.10/site-packages/snscrape/_cli.py", line 323, in main
for i, item in enumerate(scraper.get_items(), start = 1):
File "/home/ubuntu/.local/lib/python3.10/site-packages/snscrape/modules/twitter.py", line 1830, in get_items
instructions = obj['data']['user']['result']['timeline_v2']['timeline']['instructions']
KeyError: 'timeline'
```
### How to reproduce
```
/bin/snscrape --jsonl --max-results 10 twitter-profile someone
```
### Expected behaviour
It was working until Thu Jun 29 21:35:07 UTC 2023.
### Screenshots and recordings
_No response_
### Operating system
ubuntu 16
### Python version: output of `python3 --version`
Python 3.10.6
### snscrape version: output of `snscrape --version`
snscrape 0.6.2.20230321.dev32+gb76f485
### Scraper
witter-profile
### How are you using snscrape?
CLI (`snscrape ...` as a command, e.g. in a terminal)
### Backtrace
_No response_
### Log output
_No response_
### Dump of locals
_No response_
### Additional context
_No response_
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.