python spyder script create a script parser

Create a script named parser.py

Your script should define a function run() that accepts the url to a movie on RottenTomatoes. It should then create a text file that includes the following information for each review in the first 2 review pages for the movie:

– the name of the critic

– the rating. The rating should be ‘rotten’ , ‘fresh’, or ‘NA’ if the review doesn’t have a rating.

– the source (e.g ‘New York Daily News’) of the review. This should be ‘NA’ if the review doesn’t have a source.

– the text of the review. This should be ‘NA’ if the review doesn’t have text.

– the date of the review. This should be ‘NA’ if the review doesn’t have a date.

The file should include one line for each review. The reviews in the file should appear in the same order as they do on the website. The 5 values that you write for each movie should be written in the order listed above. The 5 values should be separated by a TAB.

Notes:- Your script will be used to extract the critic, rating, source, date, and text of 40 reviewers from 2 pages of reviews on RottenTomatoes. Each of the total 40×5=200 fields is worth 10/200=0.05 points. If you return all of them correctly, you get 10 points.

 
Do you need a similar assignment done for you from scratch? We have qualified writers to help you. We assure you an A+ quality paper that is free from plagiarism. Order now for an Amazing Discount!
Use Discount Code "Newclient" for a 15% Discount!

NB: We do not resell papers. Upon ordering, we do an original paper exclusively for you.