practical-nlp-code icon indicating copy to clipboard operation
practical-nlp-code copied to clipboard

Extracting Question and Answers from StackOverflow - Ch2

Open devanshu125 opened this issue 4 years ago • 7 comments

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

devanshu125 avatar Sep 02 '20 17:09 devanshu125

Thanks, @devanshu125.

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

suranah avatar Sep 05 '20 22:09 suranah

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 avatar Sep 06 '20 02:09 devanshu125

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

devanshu125 avatar Sep 06 '20 03:09 devanshu125

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

varunp2k avatar Sep 06 '20 04:09 varunp2k

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.

nishkalavallabhi avatar Sep 06 '20 13:09 nishkalavallabhi

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

varunp2k avatar Sep 07 '20 03:09 varunp2k

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

dkalantzi avatar Feb 15 '24 16:02 dkalantzi