Skip to content

Commit

Permalink
Adding in stuff to find "score" used in fetching multiple pages
Browse files Browse the repository at this point in the history
  • Loading branch information
stevesbrain committed May 23, 2016
1 parent 7c00ea5 commit b8248f4
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions ask.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

# Some arguments for the command line
import argparse
import re


parser = argparse.ArgumentParser()
parser.add_argument("-u", "--url", dest="user_url", help="The URL for parsing", type=str)
Expand All @@ -27,6 +29,14 @@

tag = soup.img

# Finding data-poll-url; using find instead of findAll
# as findAll returns "results set" and not tag

data_tag = soup.find('a', id="newItemsReady")

print(data_tag['data-poll-url'])


# Look for <img> that has both src and onerror - other images in page
# that were extraneous did not have these attributes

Expand Down

0 comments on commit b8248f4

Please sign in to comment.