Author Topic: Posting pics?  (Read 425 times)

DanielPaul

  • Getbig IV
  • ****
  • Posts: 2168
Posting pics?
« on: September 19, 2014, 06:58:15 PM »
Can it be done via smart phone, and how to you post pics in general?

el numero uno

  • Getbig V
  • *****
  • Posts: 9405
  • Clean your room, bucko.
Re: Posting pics?
« Reply #1 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')

_aj_

  • Competitors
  • Getbig V
  • *****
  • Posts: 17641
  • The Return of the OG
Re: Posting pics?
« Reply #2 on: September 19, 2014, 07:01:49 PM »
If your name is "the trainer", apparently it's impossible.

liberty

  • Competitors II
  • Getbig IV
  • *****
  • Posts: 2877
  • Getbig!
Re: Posting pics?
« Reply #3 on: September 19, 2014, 07:03:14 PM »
"A SHort Guide" ;D