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

Adapt to new ChatGPT HTML format (Aug 2023) #2

Merged
merged 1 commit into from
Aug 16, 2023

Conversation

jsh9
Copy link
Owner

@jsh9 jsh9 commented Aug 16, 2023

Motivation and context

Recently (presumably in the last 1-2 months), ChatGPT changed the HTML formatting of its Q&A page. As a result, the questions cannot be properly parsed.

I dug into this a bit, and found that ChatGPT now adds a wrapping of <div class="empty:hidden"> and </div> around each question.

What's changed

This PR made some code changes to accommodate this change, added a new test case (directly downloaded from the new ChatGPT page), and also updated the old test cases (basically adding <div class="empty:hidden"> wraps around questions).

@jsh9 jsh9 self-assigned this Aug 16, 2023
@jsh9 jsh9 merged commit aebd2c8 into main Aug 16, 2023
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

Successfully merging this pull request may close these issues.

1 participant