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

关于无法下载图片的猜想 #388

Open
zh19990906 opened this issue Jan 3, 2024 · 0 comments
Open

关于无法下载图片的猜想 #388

zh19990906 opened this issue Jan 3, 2024 · 0 comments

Comments

@zh19990906
Copy link

Finding 'Next Image' from the given raw page

def _get_next_item(self,s):
    start_line = s.find('rg_meta notranslate')
    if start_line == -1:  # If no links are found then give an error!
        end_quote = 0
        link = "no_links"
        return link, end_quote
    else:
        start_line = s.find('class="rg_meta notranslate">')
        start_object = s.find('{', start_line + 1)
        end_object = s.find('</div>', start_object + 1)
        object_raw = str(s[start_object:end_object])

.....
s.find('rg_meta notranslate')
这函数的解析目前搜索出来的结果是根本搜索不到的,而且现在默认情况下只能返回20张图片,这也是为什么很多人只能下载20张图片的原因。

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