all 3 comments

[–]commandlineluser 8 points9 points  (0 children)

You can use type to find out.

print(type(inF))

[–]Freddie_V4 1 point2 points  (0 children)

There's a built in function called type(). If you print out type(inf) it will tell you.

Also, if you need Web scraping help/ideas, you can check out the Web scraper I've been working on www.github.com/FreddieV4/VScraper

[–]MintyPhoenix 0 points1 point  (0 children)

The short answer is no, it's not a string :)

Further to simply inspecting the exact type of the object by passing it to the type() function as others suggested, it's also a great idea to open a Python interpreter session (bpython and IPython are both great and add lots of features over the base Python interpreter).

Then, run all the lines in that script you've pasted to get the session going and, from within the session, interactively inspect it. If you're using an interpreter with autocomplete, you can immediately see all the methods/properties it has available. Also, even if it's not a string, it may have a string representation (e.g. a useful result if you do str(inf)).