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

[Pixiv Login] soupsieve.util.SelectorSyntaxError: Malformed attribute selector at position 5 #28

Open
QWERTYASDF2023 opened this issue Mar 18, 2023 · 0 comments

Comments

@QWERTYASDF2023
Copy link

QWERTYASDF2023 commented Mar 18, 2023

Tried using login credentials for pixiv scraper:
python m-scraper.py rq pixiv USERID -c credentials.json tried out a couple times with different USERID

Got this error:

Namespace(keywords=[], credential_file='credentials.json', save_path=None, early_stop=False)
Logging in pixiv account...
Traceback (most recent call last):
  File "D:\media-scraper-master\media-scraper-master\m-scraper.py", line 36, in <module>
    scraper.run(sys.argv[3:])
  File "D:\media-scraper-master\media-scraper-master\m_scraper\rq\downloader.py", line 72, in run
    self.login(username, password)
  File "D:\media-scraper-master\media-scraper-master\m_scraper\rq\pixiver.py", line 27, in login
    post_key = soup.select('input[name==post_key]')[0]['value']
  File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages\bs4\element.py", line 1973, in select
    results = soupsieve.select(selector, self, namespaces, limit, **kwargs)
  File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages\soupsieve\__init__.py", line 144, in select
    return compile(select, namespaces, flags, **kwargs).select(tag, limit)
  File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages\soupsieve\__init__.py", line 67, in compile
    return cp._cached_css_compile(pattern, ns, cs, flags)
  File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages\soupsieve\css_parser.py", line 222, in _cached_css_compile
    ).process_selectors(),
  File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages\soupsieve\css_parser.py", line 1159, in process_selectors
    return self.parse_selectors(self.selector_iter(self.pattern), index, flags)
  File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages\soupsieve\css_parser.py", line 985, in parse_selectors
    key, m = next(iselector)
  File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages\soupsieve\css_parser.py", line 1152, in selector_iter
    raise SelectorSyntaxError(msg, self.pattern, index)
soupsieve.util.SelectorSyntaxError: Malformed attribute selector at position 5
  line 1:
input[name==post_key]
     ^
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

1 participant