LiveWire Network Peer Answers Peer Support Teen Forums Tech Forums College Forums 414 users online 225689 members 191 active today Advertise Here Sign In
TeenCollegeTechPhotos | Quizzes | LiveSecret | Memberlist | Dictionary | News | FAQ
Member Spotlight
mattis12
Cool Things: I'm facinated by people who can p...
Mood: Cheeky
You have 1 new message.
Emergency Help
Until you sign up you can't do much. Yes, it's free.

Sign Up Now
Membername:
Password:
Already have an account?
Invite Friends
Active Members
Groups
Contests
Moderators
1 online / 87 MPM
Fresh Topics
  LiveWire / Technical Forums / Programming & Application Development / Viewing Topic

Writing a script to post comments
Replies: 2Last Post May 24 3:57pm by i2
Welcome to LiveWire!
We're Stronger Together.
Join the Community
Single page for this topic Email Print Favorite
( HelloNerds )


Lawn Care Specialist
Reply
Hey everyone. I was hoping someone could just point me in the right direction for a place to learn how to do this.

I want to write a fairly simple script that opens a url, posts a comment to someones profile and then exits the page and opens another one and so on.

This is for a contest I am in. There are over 3000 people entered and the url's for the profiles are all the same and end with profileid=xxxx

So I figure I put the variable in a for loop to go to each profile. I've never written a script that can browse the web and do my work for me so I thought this would be a good way to learn.

Right now I am going to each profile and asking them to vote. I am sure I could write a script to do the same thing.

Any help?


11:34 am on May 23, 2009 | Joined: Nov. 2007 | Days Active: 17
Join to learn more about HelloNerds Canada | Posts: 43 | Points: 113
LiveWire Humor
Sector Corrupt


Guru

Patron
Tech Support Leader
Reply
Hmmm, thinking about this I would think you'd want to just manually build up an  HTTP request and send it directly to the site. I assume you're able to get a look at the site's URLs and source code of the particular page you're going to? From there it should be possible to build up what kind of request you'd need to make. Most likely it'd be either something like
GET HTTP/1.1
*some header info, look it up*
URL?variables=value&variable2=value
content-type: text/html

... But yeah, just look up how to build your own HTTP headers and send them and it shouldn't be that difficult.

-------
Livewire Wifey: Katie :D
Windows, For when you don't know any better.
Mac, for when you think you do.
Linux, for when you actually want to get something done.


11:45 am on May 23, 2009 | Joined: May 2005 | Days Active: 1,055
Join to learn more about Sector Corrupt Ontario, Canada | Straight Male | Posts: 4,213 | Points: 21,544
i2

Quality Control Engineer
Reply
Use PHP's cURL library.

-------
We must secure the existence of Earth's people,
and a future for all children.

3:57 pm on May 24, 2009 | Joined: April 2009 | Days Active: 43
Join to learn more about i2 Afghanistan | Posts: 456 | Points: 914
Single page for this topic Email Print Favorite

Quick Reply

You are signed in as our guest.

Looking for something else?
 

  LiveWire / Technical Forums / Programming & Application Development / Viewing Topic