Skip to content

Eastmoney parse error #121

@Cattigrew

Description

@Cattigrew

When fund makes cash dividend, the table will contain information in the 7th column, causing the regex to fail in matching the correct table and return None in Line 48 of the script.

    item_re = re.compile(
        r"<td>(\d{4}-\d{2}-\d{2})</td><td.*?>(.*?)</td><td.*?>(.*?)</td>"
        "<td.*?>(.*?)</td><td.*?>(.*?)</td><td.*?>(.*?)</td><td.*?></td>",
        re.X,
    )

An example can be found from this page
Fund 013465

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions