if you dont know Dont attempt because i will vote you down. part a….

Question Answered step-by-step if you dont know Dont attempt because i will vote you down. part a…. if you dont know Dont attempt because i will vote you down.part a. Image transcription text. ISoup: Part of this project involves theuse of the provided j soup . jar library toparse HTML files. If you s… Show more… Show moreImage transcription textoperations, ArraySet requires itscontents to be unique. Items are eitherpresent or not in the set. It… Show more… Show moreImage transcription text31: > as . size() similar between thetwo with IterativeCrawler having theadditional capability that it… Show more… Show moreYou must write two short reports this week, one for R and one for Python. For each report, provide the following information:1) Locate a useful internet resource for problem-solving. Stack Overflow is still my favorite, although it may be somewhat technical, so it may not be appropriate for novices. You may have run into challenges while working through the courses and tasks in Modules 1-6, which you then addressed by conducting web searches. For this project, you desire a continuing website that gives answers, tutorials, lessons, examples, and other resources to a large number of people with a variety of difficulties throughout time.2) Describe your favorite resource online in one short paragraph and explain why it is the greatest for your specific needs.3)) For the remainder of the report, show how you used your favorite resource website to solve an issue or demonstrate a skill you required.Provide the code, if relevant, the error message(s), and the explanation from the resource site where you found the solution.SUBMIT TWO REPORTS TOGETHER IN ONE DOCUMENT.FOR R, DO ALL THE STEPS AGAIN, AND FOR PYTHON, DO ALL THE STEPS AGAIN.Each report will contain a separate paragraph summarizing the resource, as well as a separate demonstration.For example, to explain a solution to a Python problem, I utilize Stack Overflow, which is my favorite site:PROBLEM DESCRIPTION: I wanted to check the bytes used to directly represent texts in order to locate and replace unrecognized bytes. My code was crashing because of these bytes. The purpose is to detect and identify bytes that haven’t been identified before.I gathered a sample of text from a webpage that employed directed quotations as input data.For several hours, billions of Facebook, Instagram, WhatsApp, and Messenger users were unable to access their accounts. Facebook has apologized for the outage.”We apologize for the difficulty caused by today’s outage across our platforms to all of the people and companies across the world who rely on us,” said Santosh Janardhan, Facebook’s vice president of infrastructure, in a blog post late Monday.EXAMPLE OF A FAULTY CODE: with open(“C:/6351/badbyte.txt”,’r’) as f1:   myBadText = f1.readlines()print(myBadText)ERROR MESSAGE: Traceback (most recent call last): File “C:UsersJerald HughesMy DocumentsLiClipse Workspace6351_StudentsStudentsWeek7.py”, line 8, in    myBadText = f1.readlines() File “C:ProgramDataAnaconda3libencodingscp1252.py”, line 23, in decode   return codecs.charmap_decode(input,self.errors,decoding_table)[0]UnicodeDecodeError: ‘charmap’ codec can’t decode byte 0x9d in position 311: character maps to SOLUTION DESCRIPTION: Use the “rb” flags when opening the file, instead of just “r”. The “b” value tells Python to store the bytes, not the characters. GOOGLE QUERY TO GET TO THE SOLUTION:  “python read file as bytes”STACK OVERFLOW SOLUTION:  https://stackoverflow.com/questions/1035340/reading-binary-file-and-looping-over-each-bytePython 3, read all of the file at once:with open(“filename”, “rb”) as binary_file: # Read the whole file at once data = binary_file.read() print(data)You can iterate whatever you want using data variable.MY CODE:   bytesRead = open(“C:/6351/badbyte.txt”, “rb”).read()print(“Successful bytes read.”)print(bytesRead) #Need a bytearray in order to manipulate its contentsprint()arrayBytesRead = bytearray(bytesRead)print(“Bytes array”)print(arrayBytesRead)print()#Set counter i to track indexes of the bytesi=0for byte in arrayBytesRead:   print(str(i) + ” ” + ” ” + str(hex(byte)) + ” ” + chr(byte))   i += 1Once I find bytes that caused the crash, I can either delete them, or replace them with recognizable bytes, depending on what they do in the text.OUTPUT: Here is the section which contains the byte that caused the crash:295  0x6f o296  0x75 u297  0x72 r298  0x20  299  0x70 p300  0x6c l301  0x61 a302  0x74 t303  0x66 f304  0x6f o305  0x72 r306  0x6d m307  0x73 s308  0x2c ,309  0xe2 â310  0x80311  0x9d312  0x20  313  0x73 s314  0x61 a315  0x69 i316  0x64 d317  0x20  318  0x53 S319  0x61 a320  0x6e n321  0x74 t322  0x6f o323  0x73 s324  0x68 hAt this point, I can add code to clean the bytes one by one.   Engineering & Technology Computer Science COM 456 Share QuestionEmailCopy link Comments (0)