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

AV Error on parsing #4

Open
ange007 opened this Issue Nov 25, 2018 · 5 comments

Comments

Projects
None yet
2 participants
@ange007
Copy link

commented Nov 25, 2018

Hello.

bds_2018-11-25_19-40-39
bds_2018-11-25_19-42-34

Uses:

  function getOtherData(const resultPage: string): string;
  var
    elements: IHtmlElementList;
  begin
    try elements := ParserHTML(resultPage).Find('#page_info_wrap .page_name'); except end;
    try if (Assigned(elements)) and (elements.Count > 0) then SetJSONValue(Result, 'fio', elements.Items[0].Text); except end;

    try elements := ParserHTML(resultPage).Find('#page_avatar .page_avatar_img'); except end;
    try if (Assigned(elements)) and (elements.Count > 0) then SetJSONValue(Result, 'avatar', elements.Items[0].Attributes['src']); except end;
  end;

bds_2018-11-25_19-41-37

Climbs an exception. What could be wrong?

@ange007

This comment has been minimized.

Copy link
Author

commented Dec 9, 2018

Can't help? This is a very sad error.

@ying32

This comment has been minimized.

Copy link
Owner

commented Dec 14, 2018

Sorry, github has not prompted me to have this issue. I can't analyze the reason for this problem from the pictures you provided. If you can, provide the original URL for my test and try to analyze this error. Or consult the original author 武稀松(wr960204). I am not the original author of the HTMLParser library, just added the ability to "modify" and "delete" HTML tags.

@ange007

This comment has been minimized.

Copy link
Author

commented Dec 16, 2018

The error appears incomprehensible how. When working out of a TThread, the error appears very rarely on the same page (when loading from the TFileStream). But in the TThread - almost always.

@ying32

This comment has been minimized.

Copy link
Owner

commented Dec 20, 2018

I tried to restore some code to fix this error. Or you can use the original author's code http://www.raysoftware.cn/?p=443

@ange007 ange007 referenced this issue Jan 2, 2019

Closed

Little Fix #5

@ange007

This comment has been minimized.

Copy link
Author

commented Jan 4, 2019

Actually the error did not disappear:
image

Apparently bad calculation of characters.

Or you can use the original author's code http://www.raysoftware.cn/?p=443

Unfortunately, I do not even know how to write there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.