Created
January 4, 2017 15:53
-
-
Save ddahan/a43c2541098cf99f72c40787a85a987b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def is_advertisement(search_result): | |
''' Return True is the search result is an add ''' | |
if search_result.find('span', attrs={"class":u"yloca-tip"}): | |
return True | |
return False |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment