title: How to parse HTML tags from currently viewing website?
body: <p>Forgive me for a long post, but I need to explain my problem clearly before anyone fires the down-vote button blindly.</p>
  
  <p>I have worked on Java/Android/Python/C/C++ but my present technology stack does not seem to help me in solving my current problem as i dont have much experience in web technologies, so I am asking for help.</p>
  
  <p>I have a webpage from a website(which has to be logged in &amp; it generates token for every login) where I do some data input, I want to parse the HTML code of the webpage which I am currently viewing &amp; do some calculation based on the value of few of the tags present in the webpage.</p>
  
  <p>I have tried python's beautifulsoup but I am not able to login to the website(i tried mechanize).</p>
  
  <p>I tried to use OCR in python but that did not give the desired result.</p>
  
  <p><strong>So I need help/suggestion which language combination should I choose such that I can scrape &amp; process the currently viewing webpage's HTML tags &amp; display a result.</strong></p>
  
  <pre><code>def count_pokemon_total():
      f = open("s.txt")
      types = {"pikachu:-":0,"raichu:-":320,'Pichu:-': 470}
      pokemon=[]
      contents = f.read()
      for t in types:
          if t in contents:
              print "Number of ",t,"are",contents.count(t)
              pokemon.append(contents.count(t)*types[t])
  
      print "total pokemon values are is",sum(pokemon),"Rs."
      f.close()
  
  count_pokemon_total()
  </code></pre>
  
  <p>P.S.:- Attaching the code which I have tried &amp; it works but I dont want to use this approach.</p>
  
  <p>P.P.S. :- the code attached is just for understanding what I am trying to achieve, it is not related to pokemon anyhow.</p>