Zvanysse Week 3

From LMU BioDB 2017
Jump to: navigation, search

Screenshots with Inspector Open

  1. This is with both pictures and text alteredZvanysse screenshotinspector2.png
  2. This is just text, but I thought it was funnyZvanysse screenshotinspector1.png

Screenshots without Inspector Open

  1. This is with both pictures and text alteredZvanysse screenshotwithpic.png
  2. This is just the text altered, but again, it was funnyZvanysse screenshotnopic.png

Curling in an input

curl -d "pre_text=cgatggtacatggagtccagtagccgtagtgatgagatcgatgagctagc&submit=Submit" http://web.expasy.org/cgi-bin/translate/dna_aa

Question responses

  1. Yes, there are a few links that show up within the ExPASy translation server’s responses upon inspecting the page. The first is "ga.js." This is where all the javascript code is stored. Javascript code is the code that turns inputs into outputs. There are a few .css files: "sib_print.css," "base.css," and "sib.css." This is what makes the webpage look pretty. These files are joined together in the HTML code, or "/translate" page.
  2. "/cgi-bin/translate/dna_aa" presents as an identifier for an action. "pre_text" is an identifier for the textarea name. I would also argue that "POST" would be an identifier for a method in the form.

Extracting Answers via Command Line

curl -d "pre_text=cgatggtacatggagtccagtagccgtagtgatgagatcgatgagctagc&submit=Submit" http://web.expasy.org/cgi-bin/translate/dna_aa | sed "1,47d" | sed "14,44d" | sed 's/<[^>]*>//g' | sed "2s/[A-Z]/& /g" | sed "4s/[A-Z]/& /g" | sed "6s/[A-Z]/& /g" | sed "8s/[A-Z]/& /g" | sed "10s/[A-Z]/& /g" | sed "12s/[A-Z]/& /g" | sed "s/M/Met/g"| sed "s/-/Stop /g"

Notebook

With the curl function, "curl -d" is used to capture the data of the website. "pre_text=" is used because that is where the input data goes into. "&submit=Submit" was a command that I found while I was looking on a website. When going about extracting the data, I first deleted out the section before and after the desired data I wanted. Then, I deleted everything in between the "< >" brackets. Then, I went and spaced out the uppercase letters and substituted "-" for "Stop" and "M" with "Met."

Acknowledgements

  1. Consulted with Blair on usage of the curl function
  2. Consulted with my homework partner, [Etyrnauer| Emma], on the 2nd curl question
  3. Used the LMU Website to hack
  4. Used Coachella Lineup Website to hack

While I worked with the people noted above, this individual journal entry was completed by me and not copied from another source.

References

  1. LMU BioDB 2017. (2017). Week 3. Retrieved September 14, 2017, from https://xmlpipedb.cs.lmu.edu/biodb/fall2017/index.php/Week_3
  2. Manual -- curl usage explained. Retrieved September 17, 2017, from https://curl.haxx.se/docs/manual.html