Title: Python grabbing pages source with PHP in it
Tags: python;python-3.3
Question: I know how to grab a sources HTML but not PHP is it possible with the built in functions?
Comment: I'm on a windows so I don't think anything on that link would work...

Comment: You can't grab a page's PHP.

Comment: Duplicated from http://stackoverflow.com/questions/3784138/calling-php-from-python

Here is the accepted answer: By "grab a sources HTML" I assume you mean opening and reading a web page like this:
impor urllib2
urllib2.urlopen("http://google.com").read()
Since PHP is rendered on the server side, and the client (you and your python script) have no access to it, there is no way to get at it, in a manner similar to how you would extract HTML from a webpage.

Here is another answer: PHP scripts are run server-side and produce a HTML document (among other things). You will never see the PHP source of a HTML document when requesting a website, hence there is no way for Python to grab it either. This isn't even Python-related.

{'source': 'StackExchangeDataset', 'subset': 'stackoverflow.com', 'metadata': {'AnswerCount': 2, 'CommentCount': 3, 'ContentLicense': 'CC BY-SA 3.0', 'CreationDate': '2013:00:02/24/13', 'FavoriteCount': None, 'PostTypeId': 1, 'Tags': '<python><python-3.3>', 'Title': 'Python grabbing pages source with PHP in it', 'ViewCount': 130, 'id': 15057651, 'user_AboutMe': '', 'user_AccountId': 912212.0, 'user_DisplayName': 'TrevorPeyton', 'user_Reputation': 629.0, 'user_Views': 91.0, 'user_id': 1456942.0}}