Upvote:1
Most probably no. Most Chinese consulates in the world take visa applications ONLY from residents. In some cases (it happened to a friend in Singapore), they even restrict what type of visa a foreign resident can apply for.
The only place I know where you can get a Chinese visa as a tourist is Hong Kong. But that would probably require you to change your travel plans...
Note that without a Chinese visa, or another booking out of China within 72 hours, the airline won't let you board your flight. Your best bets are:
You can combine options 1 and 2: get a round trip PEK-HKG. Enjoy 72 hours in Beijing. Go to HK. Apply for a tourist visa (get a two-entry visa, might as well), and visit HK while waiting. Go back to PEK, and start visiting China.