ਵੈੱਬ ਨੂੰ ਕੈਪਚਰ ਅਤੇ ਕਨਵਰਟ ਕਰਨ ਲਈ ਟੂਲ

ਤੁਸੀਂ ਗਰੈਬਜ਼ਆਈਟੀ ਦੇ ਵੈਬ ਸਕ੍ਰੈਪਰ ਏਪੀਆਈ ਦੀ ਵਰਤੋਂ ਕਰਦਿਆਂ ਸਕ੍ਰੈਪ ਨੂੰ ਕਿਵੇਂ ਬਦਲ ਸਕਦੇ ਹੋ?

ਵਧਾਓ intGrabzIt ਦੇ ਵਿਚਕਾਰ ਉਦਾਹਰਣ ਵੈਬ ਸਕ੍ਰੈਪਰ ਅਤੇ ਗਰੈਬਜ਼ਿਟ ਦੀ ਵਰਤੋਂ ਕਰਕੇ ਤੁਹਾਡੀ ਐਪਲੀਕੇਸ਼ਨ ਵੈਬ ਸਕ੍ਰੈਪਰ API ਵੈਬ ਸਕ੍ਰੈਪਸ ਦੀ ਵਿਸ਼ੇਸ਼ਤਾ ਨੂੰ ਪ੍ਰੋਗਰਾਮਾਂਕਲੀ ਰੂਪ ਵਿੱਚ ਬਦਲਣ ਲਈ.

ਵੈਬ ਸਕ੍ਰੈਪ ਦੇ ਟੀਚੇ ਨੂੰ ਬਦਲੋ

ਹੇਠਾਂ ਦਿੱਤੀ ਉਦਾਹਰਣ ਦਰਸਾਉਂਦੀ ਹੈ ਕਿ ਕਿਵੇਂ ਦੋਵਾਂ ਨੂੰ ਬਦਲਣਾ ਹੈ ਬੀਜ URL ਦਾ ਅਤੇ ਮੁੱਖ ਟੀਚਾ URL.

GrabzItScrapeClient client = new GrabzItScrapeClient("Sign in to view your Application Key", "Sign in to view your Application Secret");
Target target = new Target();
//Set the target URL
target.URL = "http://www.example.com";
List<string> seedUrls = new List<string>();
seedUrls.Add("http://www.example.com/news.html");
seedUrls.Add("http://www.example.com/about.html");
seedUrls.Add("http://www.example.com/contactus.html");
//Set the seed URL's
target.SeedURLs = seedUrls.ToArray();
//Enter the id of the scrape you want to alter along with the target object
client.SetScrapeProperty("59421f049e3d991318d35e49", target);
$client = new GrabzItScrapeClient("Sign in to view your Application Key", "Sign in to view your Application Secret");
$target = new GrabzItTarget();
//Set the target URL
$target->SetURL("http://www.example.com");
$seedUrls = array();
$seedUrls[] = "http://www.example.com/news.html";
$seedUrls[] = "http://www.example.com/about.html";
$seedUrls[] = "http://www.example.com/contactus.html";
//Set the seed URL's
$target->SetSeedURLs($seedUrls);
//Enter the id of the scrape you want to alter along with the target object
$client->SetScrapeProperty("59421f049e3d991318d35e49", $target);
client = GrabzItScrapeClient.GrabzItScrapeClient("Sign in to view your Application Key", "Sign in to view your Application Secret");
target = new GrabzItTarget.GrabzItTarget()
#Set the target URL
target.url = "http://www.example.com"
seedUrls = []
seedUrls.append("http://www.example.com/news.html")
seedUrls.append("http://www.example.com/about.html")
seedUrls.append("http://www.example.com/contactus.html")
#Set the seed URL's
target.seedURLs = seedUrls
#Enter the id of the scrape you want to alter along with the target object
client.SetScrapeProperty("59421f049e3d991318d35e49", target)

ਵੈਬ ਸਕ੍ਰੈਪ ਵਿੱਚ ਇੱਕ ਵੇਰੀਏਬਲ ਬਦਲੋ

ਹੇਠਾਂ ਦਿੱਤੀਆਂ ਉਦਾਹਰਣਾਂ ਵਿੱਚ ਇੱਕ ਵੇਰੀਬਲ ਸੈੱਟ ਕਰੋ ਇੱਕ ਤੱਕ string ਨਾਮਾਂ ਦੀ ਐਰੇ, ਹਾਲਾਂਕਿ ਵੇਰੀਏਬਲ ਨੂੰ ਕਿਸੇ ਵੀ ਹੋਰ ਕਿਸਮ ਦੇ ਸਧਾਰਣ ਡੇਟਾ ਤੇ ਸੈੱਟ ਕੀਤਾ ਜਾ ਸਕਦਾ ਹੈ.

GrabzItScrapeClient client = new GrabzItScrapeClient("Sign in to view your Application Key", "Sign in to view your Application Secret");
Variable variable = new Variable("names");
List<string> names = new List<string>();
names.Add("Tom");
names.Add("Dick");
names.Add("Harry");
foreach(string name in names)
{
	variable.AddArrayItem(name);
}
//Enter the id of the scrape you want to alter along with the variable object
client.SetScrapeProperty("59421f049e3d991318d35e49", variable);
$client = new GrabzItScrapeClient("Sign in to view your Application Key", "Sign in to view your Application Secret");
$variable = new GrabzItVariable("names");
$names = array();
$names[] = "Tom";
$names[] = "Dick";
$names[] = "Harry";
$variable->SetValue($names);
//Enter the id of the scrape you want to alter along with the variable object
$client->SetScrapeProperty("59421f049e3d991318d35e49", $variable);
client = GrabzItScrapeClient.GrabzItScrapeClient("Sign in to view your Application Key", "Sign in to view your Application Secret");
variable = new GrabzItVariable.GrabzItVariable("names")
names = []
names.append("Tom")
names.append("Dick")
names.append("Harry")
#Set the seed URL's
variable.value = names
#Enter the id of the scrape you want to alter along with the variable object
client.SetScrapeProperty("59421f049e3d991318d35e49", variable)

ਵੇਰੀਏਬਲ ਵੈਲਯੂ ਨੂੰ ਫਿਰ ਆਮ inੰਗ ਨਾਲ ਵਰਤ ਕੇ ਇਸਤੇਮਾਲ ਕੀਤਾ ਜਾ ਸਕਦਾ ਹੈ ਗਲੋਬਲ.ਗੇਟ ਹੇਠ ਦਿਖਾਇਆ ਗਿਆ ਦੇ ਤੌਰ ਤੇ ਵਿਧੀ.

var names = Global.get("names");

ਤਦ ਨਾਮ ਐਰੇ ਨੂੰ ਸਕ੍ਰੈਪ ਨਿਰਦੇਸ਼ਾਂ ਵਿੱਚ ਆਮ ਵਾਂਗ ਵਰਤਿਆ ਜਾ ਸਕਦਾ ਹੈ.