为什么我更改 instapy like_until 文件时出现错误?

Why do I have error when I change instapy like_until file?

我有点喜欢的问题

Cannot detect post media type

我读到我应该更改一行 like_until(span 到 div)但是当我更改它时,我得到了这些错误:

Traceback (most recent call last): File "c:\Users\lenovo\Desktop\SubDesk\Click Bloom\click_bloom_v1.0.0\main.py", line 72, in <module> session.like_by_tags(['bitcoin'], amount=11) File "C:\Users\lenovo\AppData\Local\Programs\Python\Python39\lib\site-packages\instapy\instapy.py", line 1957, in like_by_tags inappropriate, user_name, is_video, reason, scope = check_link( File "C:\Users\lenovo\AppData\Local\Programs\Python\Python39\lib\site-packages\instapy\like_util.py", line 726, in check_link quash = re.search(dont_likes_regex, image_text, re.IGNORECASE) File "C:\Users\lenovo\AppData\Local\Programs\Python\Python39\lib\re.py", line 201, in search return _compile(pattern, flags).search(string) File "C:\Users\lenovo\AppData\Local\Programs\Python\Python39\lib\re.py", line 304, in _compile p = sre_compile.compile(pattern, flags) File "C:\Users\lenovo\AppData\Local\Programs\Python\Python39\lib\sre_compile.py", line 764, in compile p = sre_parse.parse(p, flags) File "C:\Users\lenovo\AppData\Local\Programs\Python\Python39\lib\sre_parse.py", line 948, in parse p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0) File "C:\Users\lenovo\AppData\Local\Programs\Python\Python39\lib\sre_parse.py", line 443, in _parse_sub itemsappend(_parse(source, state, verbose, nested + 1, File "C:\Users\lenovo\AppData\Local\Programs\Python\Python39\lib\sre_parse.py", line 671, in _parse raise source.error("multiple repeat", re.error: multiple repeat at position 8

我该怎么办?

问题解决了! 我的其中一个标签包含 +,这会造成问题

从命令行安装instapy出现这个错误。

要解决这个问题:

  1. 删除此位置的所有 instapy 文件夹:
    C:\Users[computer-user]\AppData\Local\Programs\Python\Python39\Lib\site-packages
    
  2. 转到https://github.com/timgrossmann/InstaPy
  3. 下载instaPy-master.zip
  4. 解压缩下载的文件并复制 instapy 文件夹
    \InstaPy-master
    
    C:\Users[computer-user]\AppData\Local\Programs\Python\Python39\Lib\site-packages
    
  5. 然后运行你的代码