❓ Webpage reading and executing commands?

Posts 1–6 of 6 · Page 1 of 1
❓ Webpage reading and executing commands?
What language would work for reading for example youtube subscriber amount and press "Subscribe" button when sub amount has reached certain point. Is there a guide about this somewhere? I haven't found any but I think it would work the same way account checkers do (Go to a webpage and try passwords until it works? ). I am a noob at coding but if I get a proper guide I will be able to learn this and use this so do you know any guides or what language would work?
Quote Originally Posted by JustWorkHereLUL View Post
but I think it would work the same way account checkers do
You will have to signin and keep the session alive to press the subscribe button(prolly some kind of get/post request) but that't not the case with checkers. With checkers, you don't keep the session alive(you just post the credentials and check for status codes or sometimes something else. I would suggest PHP, it's easier than perl.).
i would do it immidiatly in JavaScript today xD but it was not the point of my answer
Code:
const http = require('https');
const querystring = require('querystring');        
		
const postData = querystring.stringify({
	auth_user: 'example',
	auth_password: 'example',
});

const options = {
	host: 'www.example.com',
	path: '/api/endpoint',
	method: 'POST',
	headers: {
		'Content-Type': 'application/x-www-form-urlencoded',
		'Content-Length': postData.length,
	}
};

const buffer = [];
const onReceive = c => {
	buffer.push(Buffer.from(c));
};

const req = http.request(options, res => {
	res.on('data', onReceive);
	res.on('end', () => console.log(`Response Code: ${res.code} Content: ${Buffer.concat(buffer).toString()}`));
});
req.write(postData);
req.end();
Thanks haha :P gonna have to get into this deeper since as i said im a noob lol. Asking bcoz there are pepl who host giveaways like "100 000th follower gets ____" so i would always win Also can i host this 24/7 with something?
any scraping library in any high level lang (c#, python, php...) will do the job.
Posts 1–6 of 6 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us