Getbig.com: American Bodybuilding, Fitness and Figure

Getbig Main Boards => Gossip & Opinions => Topic started by: DanielPaul on September 19, 2014, 06:58:15 PM

Title: Posting pics?
Post by: DanielPaul on September 19, 2014, 06:58:15 PM
Can it be done via smart phone, and how to you post pics in general?
Title: Re: Posting pics?
Post by: el numero uno on September 19, 2014, 07:01:05 PM
Short guide to posting pics:

#!/usr/bin/python

#this calls a webpage and dumps a screen scrape to a file
#usage webget(url, filename)

import os
import subprocess

#webget is created as a function where the usage is defined as "webget (site_address,output_file)"
def webget(site, output):
    #a linux shell command is called to dump the text to the file
    command = 'w3m -dump ' + site + ' > ' + output
    outfile = open(output, "w")
    filetext = subprocess.Popen(command, shell=True, stdout=file(output,"w"))
    filetextfix = filetext.communicate()

#now we call our function with the variables we want
webget ('http://www.yahoo.com','test.txt')
Title: Re: Posting pics?
Post by: _aj_ on September 19, 2014, 07:01:49 PM
If your name is "the trainer", apparently it's impossible.
Title: Re: Posting pics?
Post by: liberty on September 19, 2014, 07:03:14 PM
"A SHort Guide" ;D