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

Extracting Question and Answers from StackOverflow - Ch2 #22

Open
devanshu125 opened this issue Sep 2, 2020 · 7 comments
Open

Extracting Question and Answers from StackOverflow - Ch2 #22

devanshu125 opened this issue Sep 2, 2020 · 7 comments
Assignees

Comments

@devanshu125
Copy link
Contributor

Notebook link - https://github.com/practical-nlp/practical-nlp/blob/master/Ch2/01_WebScraping_using_BeautifulSoup.ipynb

The questiontext and answertext will return None as there is no such class as "post-text". I have tried to correct the code and here is my answer to the issue -

image

@suranah
Copy link
Member

suranah commented Sep 5, 2020

Thanks, @devanshu125.

Can you submit a pull request to the repo? This way we can also attribute your contributions.

@devanshu125
Copy link
Contributor Author

Thanks, @devanshu125.

Can you submit a pull request to the repo? This way we can also attribute your contributions.

I would love to do that, thank you!

@devanshu125
Copy link
Contributor Author

Hey @suranah , I have created a pull request #24 , could you check it out?

@varunp2k
Copy link
Collaborator

varunp2k commented Sep 6, 2020

@devanshu125
We will review it and merge it shortly. Thank you.

varunp2k added a commit that referenced this issue Sep 6, 2020
Extracting Question and Answers from StackOverflow - Ch2 #22
@nishkalavallabhi
Copy link
Collaborator

If they change their style sheet again, the code may not work again. So, perhaps it is useful to add a comment on top with a timestamp.

@varunp2k
Copy link
Collaborator

varunp2k commented Sep 7, 2020

@nishkalavallabhi Maybe using a demo website such as quotes.toscrape.com instead of stackoverflow would be a better idea.

@dkalantzi
Copy link

I'm trying to run the notebook, but I get the following error: HTTPError: HTTP Error 403: Forbidden
Can you please have a look? Many thanks!

Practical_NLP-Beautiful_Soup

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

5 participants