वेब पर कब्जा और परिवर्तित करने के लिए उपकरण

किसी वेब पेज को बदलने से पहले आप उसे कैसे बदलेंगे?

वेब पेज बदलें

आप किसी भी पृष्ठ को छवि, PDF या DOCX के रूप में कैप्चर करने से पहले उसके HTML को बदल सकते हैं।

ऐसा करने के लिए आपको जिस प्रोग्रामिंग भाषा का उपयोग कर रहे हैं, उससे उचित विधि का उपयोग करके HTML पृष्ठ की सामग्री को पढ़ना होगा। एक बार जब आप यह कर लें तो HTML को बदल दें, जिसका एक उदाहरण नीचे दिखाया गया है। फिर पता पैरामीटर को उसी पैरामीटर पर सेट करें जिसका उपयोग सामग्री को पढ़ने के लिए किया जाता है। यह सुनिश्चित करेगा कि वेब पेज को उसी यूआरएल का उपयोग करके कैप्चर किया गया है, ताकि किसी भी संबंधित संसाधन को सही ढंग से प्रस्तुत किया जा सके।

string html = ""; //populate this variable by the HTML from http://www.example.com/index.html
//alter HTML
html += "<style>body{background-color:red !important;}</style>";
GrabzItClient grabzIt = new GrabzItClient("Sign in to view your Application Key", "Sign in to view your Application Secret");
ImageOptions options = new ImageOptions();
options.Address = "http://www.example.com/index.html";
grabzIt.HTMLToImage(html, options);
grabzIt.SaveTo("result.jpg");
String html = ""; //populate this variable by the HTML from http://www.example.com/index.html
//alter HTML
html += "<style>body{background-color:red !important;}</style>";
GrabzItClient grabzIt = new GrabzItClient("Sign in to view your Application Key", "Sign in to view your Application Secret");
ImageOptions options = new ImageOptions();
options.setAddress("http://www.example.com/index.html");
grabzIt.HTMLToImage(html, options);
grabzIt.SaveTo("result.jpg");
var grabzit = require('grabzit');

var html = ""; //populate this variable by the HTML from http://www.example.com/index.html
//alter HTML
html += "<style>body{background-color:red !important;}</style>";
var client = new grabzit("Sign in to view your Application Key", "Sign in to view your Application Secret");
client.html_to_image(html,{"address":"http://www.example.com/index.html"});
client.save_to("result.jpg", function (error, id){
    if (error != null){
        throw error;
    }
});
$html = ""; #populate this variable by the HTML from http://www.example.com/index.html			
#alter HTML
html .= "<style>body{background-color:red !important;}</style>";
$grabzIt = GrabzItClient->new("Sign in to view your Application Key", "Sign in to view your Application Secret");
$options = GrabzItImageOptions->new();
$options->address("http://www.example.com/index.html");
$grabzIt->HTMLToImage($html,$options);
$grabzIt->SaveTo("result.jpg");
$html = ""; //populate this variable by the HTML from http://www.example.com/index.html	
//alter HTML
$html .= "<style>body{background-color:red !important;}</style>";
$grabzIt = new \GrabzIt\GrabzItClient("Sign in to view your Application Key", "Sign in to view your Application Secret");
$options = new \GrabzIt\GrabzItImageOptions();
$options->setAddress("http://www.example.com/index.html");
$grabzIt->HTMLToImage($html, $options);
$grabzIt->SaveTo("result.jpg");
html = "" #populate this variable by the HTML from http://www.example.com/index.html	
#alter HTML
html += "<style>body{background-color:red !important;}</style>"
grabzIt = GrabzItClient.GrabzItClient("Sign in to view your Application Key", "Sign in to view your Application Secret")
options = GrabzItImageOptions.GrabzItImageOptions()
options.address = "http://www.example.com/index.html"
grabzIt.HTMLToImage(html, options)
grabzIt.SaveTo("result.jpg")
html = "" #populate this variable by the HTML from http://www.example.com/index.html
#alter HTML
html += "<style>body{background-color:red !important;}</style>";
grabzIt = GrabzIt::Client.new("Sign in to view your Application Key", "Sign in to view your Application Secret")
options = GrabzIt::ImageOptions.new()
options.address = "http://www.example.com/index.html"
grabzIt.html_to_image(html, options)
grabzIt.save_to("result.jpg")