Web Scraping of Amazon reviews

I wanted to scrap the text reviews of a product from the amazon website . But I am getting this extra text. How do i extract only the text review part?

I got this phone on Friday evening.

Pros:
Great battery life
Amazing performance
Premium design
Impressive rear and front camera
In display fingerprint scanner is really fast

Cons:
No headphone jack but you'll get a converter
No notification LED
No microSD card slot

I will give points on my personal experience of 2 days full usage as below:

Weight: 9/10
OS: 10/10
Screen size: 10/10
CPU: 10/10
Performance: 10/10
Storage: 10/10 (you'll get approx 113 gb for use)
Battery: 8/10
Rear camera: 10/10
Front camera: 10/10
In display fingerprint scanner: 9/10
Face unlock: 10/10

I hope this will help full.
The following code is the code i have written: def ScrapAmazon(): url = input("Enter the url of the product") android_data=urlopen(url) android_html = android_data.read() android_data.close() from bs4 import BeautifulSoup as soup android_soup = soup(android_html,'html.parser') reviews = android_soup.findAll('div',{'class':'a-expander-content reviewText review-text-content a-expander-partial-collapse-content'}) first_review = reviews[0] print(first_review)

Which is the extra part that you mentioned?


This extra part in the beginning of the output

Suprateek u can use firstreview.split(’>’)[2:] to get only required text

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.

Hello Bhaiya, I was also trying this using Scrapy. In this also I am getting extra text. How do I extract only the review> span::text is only giving the first line and ends when there is a line break.