EvilZone
Programming and Scripting => Web Oriented Coding => Topic started by: romancodis on December 23, 2015, 10:29:10 AM
-
Hai,
i have some question about "inspect element", which is a option in major browsers to view source code of web pages . I want to make a script to automate inspect element tool
Thanks in advance :)
-
uhh...?
Do you want to scrape and download the source automatically.. or.. do you want a script to press f12 for you?
-
I think you are sort of missing the point... Take a look at the DOM (Document Object Model) this is probably better suited for what you want to do?
-
what do you meant source code? All the broswer sees is HTML, under normal circumstances that nothing is fucked in the server, and i hope this is what you mean mate, the HTML.
This my friend is as simple as fucking a whore, and rather just a short.
require 'net/http'
url = URI.parse('http://evilzone.org')
req = Net::HTTP::Get.new(url.to_s)
res = Net::HTTP.start(url.host, url.port) {|http|
http.request(req)
}
puts res.body
import requests
r = requests.get('https://evilzone.org')
print r.text
//Node.js, feel la kenjoe41 baby.
var request = require("request");
var parseHTML = function(html) {
//parse it anyway you want
};
request("http://evilzone.org", function (error, response, body) {
if (!error) {
parseHtml(body);
} else {
console.log(error);
}
});
import std.net.curl, std.stdio;
auto content = get("http://evilzone.org");
writeln(content);
/me thinks that is enough.
-
uhh...?
Do you want to scrape and download the source automatically.. or.. do you want a script to press f12 for you?
i dont want to download source code automatically, instead of changing the coding in client side for change the working of particular website for our use
-
I think you are sort of missing the point... Take a look at the DOM (Document Object Model) this is probably better suited for what you want to do?
its possible to make inspect element by DOM, sorry i dont know about DOM .but i want to know please tell me way to make inspect element automation using DOM
-
what do you meant source code? All the broswer sees is HTML, under normal circumstances that nothing is fucked in the server, and i hope this is what you mean mate, the HTML.
This my friend is as simple as fucking a whore, and rather just a short.
require 'net/http'
url = URI.parse('http://evilzone.org')
req = Net::HTTP::Get.new(url.to_s)
res = Net::HTTP.start(url.host, url.port) {|http|
http.request(req)
}
puts res.body
import requests
r = requests.get('https://evilzone.org')
print r.text
//Node.js, feel la kenjoe41 baby.
var request = require("request");
var parseHTML = function(html) {
//parse it anyway you want
};
request("http://evilzone.org", function (error, response, body) {
if (!error) {
parseHtml(body);
} else {
console.log(error);
}
});
import std.net.curl, std.stdio;
auto content = get("http://evilzone.org");
writeln(content);
/me thinks that is enough.
wow man, is awesome . and i need to do edit the contents of website by using inspect element by automation, not only view the source code and modifying on client side
-
:o
So what you want is a universal hack that would change websites for everyone, everywhere, automatically?
You need to do some serious reading up on web servers how and how web based content is delivered, view source is only client side... Whenever this is done server side it's done using dynamic content (or I guess some shoddy devs would do it with time based logic but that's beside the point)
-
JavaScript, and some other server side language like php or python. You got this.
-
wow man, is awesome . and i need to do edit the contents of website by using inspect element by automation, not only view the source code and modifying on client side
Hi,
I think you are not getting the point dude. If you inspect the page, anyhow you are going to land on HTML page. What the mentioned Python code will do is exactly same. It's going to give you a HTML response to you. You have manipulate that to achieve what you are trying.
You can see the following URL as sample.
http://www.arock.in/python/have-you-got-tired-of-waiting-for-web-service/ (http://www.arock.in/python/have-you-got-tired-of-waiting-for-web-service/)
Sent from my A0001 using Tapatalk
-
OP was last here on 30th december.
He shot me a PM i was lazy to answer but from what he wanted, javascript is the answer.
If he still is interested and still doesn't find the answer with more googling using that trigger word, then i might elaborate otherwise i am lazy now.