2 Replies - 842 Views - Last Post: 11 May 2009 - 05:23 PM Rate Topic: -----

#1 papuccino1   User is offline

  • His name was Robert Paulson.
  • member icon

Reputation: 63
  • View blog
  • Posts: 1,121
  • Joined: 02-March 08

What terms should I search in Google for achieving this.

Post icon  Posted 10 May 2009 - 07:26 PM

I searched on Google for scraping a website and I found something using RegEx and some other things, particularly look at the source code of a website, but after inspecting my target website I see they don't even have source code. At least not anything useful.

www.sharebee.com

My question is how can I submit something to this website using C#. I'm not asking for the complete solution (even though it may be easy), I just want to know what I should look at.

:ph34r:

Is This A Good Question/Topic? 0
  • +

Replies To: What terms should I search in Google for achieving this.

#2 StarBP   User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 42
  • Joined: 06-May 09

Re: What terms should I search in Google for achieving this.

Posted 10 May 2009 - 07:53 PM

View Postpapuccino1, on 10 May, 2009 - 06:26 PM, said:

I searched on Google for scraping a website and I found something using RegEx and some other things, particularly look at the source code of a website, but after inspecting my target website I see they don't even have source code. At least not anything useful.

www.sharebee.com

My question is how can I submit something to this website using C#. I'm not asking for the complete solution (even though it may be easy), I just want to know what I should look at.

:ph34r:


Yes they do. They have tried to hide it by scrolling further down. Here it is (sorry for the line breaks, or lack thereof):
																																																															   <style>		body {			font-family: Arial, Helvetica;			font-size: 11px;			text-align: center;			padding: 0 0 0 0;			margin: 0 0 0 0;			background-color: #ffffff;		}		td {			font-family: Arial, Helvetica;			font-size: 11px;		}		h1 {			font-family: Trebuchet MS, Arial, Helvetica;			font-size: 36px;			font-weight: bold;			letter-spacing: -1px;			margin-bottom: 2px;		}		h2 {			font-family: Arial, Helvetica;			font-size: 19px;			 font-weight: 500;			margin: 0px 0px 0px 40px;			color: #333;				}		h4 {			font-family: Arial, Helvetica;			font-size: 13px;			 font-weight: 500;			margin: 0px 0px 0px 40px;			color: #333;				}		.titleheader {			font-family: Trebuchet MS, Arial, Helvetica;			font-size: 36px;			font-weight: bold;			letter-spacing: -1px;			margin-bottom: 2px;		}		.topbar {			background: url('http://www.sharebee.com/images/clean_01.gif') #ffffff repeat-x;			height: 32px;		}		.threeboxbg {			background: url('http://www.sharebee.com/images/clean_06.gif') #ffffff repeat-x;			height: 70px;		}		.threebox {			position:relative;			margin:0 auto;			text-align:left;			width:100px;			border: 1px;		}		.threebox1 {			height: 70px;			width: 170px;			text-align:left;			vertical-align: top;			padding: 4px 10px 0px 0px;		}		.threebox2 {			background: url('http://www.sharebee.com/images/clean_09.gif') no-repeat;			height: 70px;			width: 180px;			text-align:left;			vertical-align: top;			padding: 4px 10px 0px 14px;		}		.threebox3 {			height: 70px;			width: 200px;			text-align:left;			vertical-align: top;			padding: 4px 0px 0px 11px;		}		.threebox1 h3 {			font-family: Arial, Helvetica;			padding: 0;			margin-bottom: 5px;			color: #a0d200;		}		.threebox2 h3 {			font-family: Arial, Helvetica;			padding: 0;			margin-bottom: 5px;			color: #a0d200;		}		.threebox3 h3 {			font-family: Arial, Helvetica;			padding: 0;			margin-bottom: 5px;			color: #a0d200;		}		.headersmall {			font-family: Verdana;			font-size: 9px;			padding: 0;			color: #000000;			font-weight: none;		}		.header12 {			font-family: Arial, Helvetica;			font-size: 12px;			font-weight: bold;			padding: 0;			color: #a0d200;		}		.header12b {			font-family: Arial, Helvetica;			font-size: 12px;			font-weight: bold;			padding: 0;			color: #000000;		}		.header13t {			font-family: Trebuchet MS, Arial, Helvetica;			font-size: 13px;			padding: 0;			color: #000000;		}		.h2a {			font-family: Arial, Helvetica;			font-size: 16px;			font-weight: bold;			padding: 0px 0px 3px 0px;			margin: 0;					color: #000000;		}		.green {				 color: #a0d200;		}		.randombar {			background: url('http://www.sharebee.com/images/clean_12.gif') #ffffff repeat-x;			height: 38px;			font-size: 14px;			text-align: center;			color: #333;		}		.randombar strong {			font-weight: 700;		}		.randombar span {			font-size: 12px;			font-style: italic;		}		.bottombar {			background: url('http://www.sharebee.com/images/clean_15.gif') #ffffff repeat-x;			height: 72px;			font-size: 12px;			text-align: center;			color: #333;		}		.bottombar a:link, a:active {			color: #333;			text-decoration: none;		}		.bottombar a:visited {			color: #333;			text-decoration: none;		}		.bottombar a:hover {			color: #333;			text-decoration: underline;		}		.bottombar span {			font-size: 14px;			font-weight: bold;		}		.tbody {			width: 780px;			text-align: left;			vertical-align: top;			padding: 24px 0px 50px 0px;		}		.fbody {			text-align: center;			vertical-align: top;			padding: 24px 0px 50px 0px;		}		.fbody h2 a:link,a:visited,a:active {			color: #a0d200;			text-decoration: none;		}		.fbody h2 a:hover {			color: #a0d200;			text-decoration: underline;		}		.fform {			text-align: left;			margin-top: 30px;			margin-left: 75px;			padding-bottom: 3px;		}		.finput {			background: #f9e791 repeat-x;			width: 470px;			height: 18px;			font-family: Arial, Helvetica;			font-size: 16px;			border-right: #999 1px solid;			border-left: #666 1px solid;			border-top: #666 1px solid;			border-bottom: #999 1px solid;			padding: 4px 4px 4px 4px;			margin-right: 4px;		}		.finput#file {			width: 579px;			height: 28px;		}		.fcheckdesc {			color: #333;		}		.fdesc {			font-family: Arial, Helvetica;			font-size: 12px;			padding: 0px 0px 0px 2px;		}		.fsmalldesc {			font-family: Arial, Helvetica;			font-size: 10px;			font-weight: 600;			text-align: right;			padding-right: 112px;		}		.cinput {			background: #f9e791 repeat-x;			width: 225px;			height: 15px;			font-family: Arial, Helvetica;			font-size: 16px;			border-right: #999 1px solid;			border-left: #666 1px solid;			border-top: #666 1px solid;			border-bottom: #999 1px solid;			padding: 4px 4px 4px 4px;			margin-right: 4px;		}		.ctextarea {			background: #f9e791 repeat-x;			width: 480px;			height: 150px;			font-family: Arial, Helvetica;			font-size: 16px;			border-right: #999 1px solid;			border-left: #666 1px solid;			border-top: #666 1px solid;			border-bottom: #999 1px solid;			padding: 4px 4px 4px 4px;			margin-right: 4px;		}		textarea {			background: #f9e791 repeat-x;			width: 470px;			height: 60px;			font-family: Arial, Helvetica;			font-size: 16px;			border-right: #999 1px solid;			border-left: #666 1px solid;			border-top: #666 1px solid;			border-bottom: #999 1px solid;			padding: 4px 4px 4px 4px;			margin-right: 4px;		}		.links {			font-family: Arial, Helvetica;			font-size: 18px;					}		.links td {			font-family: Arial, Helvetica;			font-size: 18px;					}		.linkprogress{			font-family: Arial, Helvetica;			font-size: 14px;			font-weight: bold;		}		a:link,a:visited,a:active {			color: #a0d200;			text-decoration: none;		}		a:hover {			text-decoration: underline;		}	</style>	<body>	<table width="100%" border="0" cellpadding="0" cellspacing="0">		<tr>			<td class="topbar">			</td>		</tr>		<tr>			<td height="96" align="center">			<span class="titleheader">This is Sharebee.com</span> <span class="headersmall">2nd beta</span>			<h2>The one and only online file upload distribution service.</h2>			</td>		</tr>		<tr>			<td class="threeboxbg">				<table align="center" border="0" cellpadding="0" cellspacing="0">					<tr>						<td class="threebox1">							<h3>Upload &raquo;</h3>							Choose the file you want to keep<br>online and upload it at Sharebee.						</td>						<td class="threebox2">							<h3>Distribute &raquo;</h3>							Sharebee will upload the file to<br>several file hosting services.						</td>						<td class="threebox3">							<h3>Update &raquo;</h3>							Links are checked for status and will<br>be removed and updated when needed.						</td>					</tr>				</table>			</td>		</tr>		<tr>			<td class="randombar">			<strong>About Sharebee:</strong>&nbsp;&nbsp;<span>Info: Please always use the Sharebee link to avoid deletion, we do more then just upload.</span>			</td>		</tr>		<tr>			<td class="fbody">			<script type="text/javascript">	function setCookie(name, value, days)	 {		if (!days) {			days = 60;		}		var expiry_date = new Date();		expiry_date.setTime(expiry_date.getTime() + days*24*60*60*1000);		document.cookie = name + "=" + escape(value) + "; expires=" + expiry_date.toGMTString() + "; domain=sharebee.com";	}	function getCookie(name) {		var dc = document.cookie;		var prefix = name + "=";		var begin = dc.indexOf("; " + prefix);		if (begin == -1) {			begin = dc.indexOf(prefix);			if (begin != 0) return null;		} else {			begin += 2;		}		var end = document.cookie.indexOf(";", begin);		if (end == -1) {			end = dc.length;		}		return unescape(dc.substring(begin + prefix.length, end));	}		function toggleCookie() {		if (document.fform.remember.checked == true) {			setCookie("sharebee_save_email", document.fform.email.value, 365);		} else {			setCookie("sharebee_save_email", "", 365);		}		document.fform.email.value = 'email is currently not working, fix asap.';	}	function startPage() {		return;		var_cookie = getCookie("sharebee_save_email");		if (var_cookie != "" && var_cookie != null) {			/* document.fform.email.value=var_cookie; */			document.fform.remember.checked=true;		} else {			document.fform.email.value="";			document.fform.remember.checked=false;		}				document.fform.email.focus();								document.fform.email.value = 'email is currently not working, fix asap.';				document.fform.emailothers.value = 'email is currently not working, fix asap.';	}	function isValidEmail(str) {		return (str.indexOf(".") > 2) && (str.indexOf("@") > 0);	}	function submitForm() {		/* document.fform.email.value = '';		document.fform.emailothers.value = ''; */				if (document.fform.upfile.value == null || document.fform.upfile.value == "") {			alert("Please browse a file to upload.");			return false;		}		/* if (document.fform.email.value != "" && document.fform.email.value != null) {			if (isValidEmail(document.fform.email.value) == false )			{				alert("Your e-mail address is not valid. Please correct it or leave it blank.");				return false;			}		} */		if (document.fform.terms.checked != true) {			alert("You must agree to the Terms of Service.");			return false;		}			document.fform.submit.value = "Uploading...";		document.fform.submit.disabled = true;				/* start */		/* progress.start(); */				document.getElementById("progress").style.display = 'block';		document.getElementById("divform").style.display = 'none';		return true;	}	function tos() {		document.fform.terms.checked = true;		window.open('/tos?popup=true','','scrollbars=yes,menubar=no,height=600,width=850,resizable=yes,toolbar=no,location=no,status=no');	}	function textCounter(field, maxlimit) {		if (field.value.length > maxlimit)			field.value = field.value.substring(0, maxlimit);	}</script>	<div id="divform" align="center">	<h2 class="h2a">Ready to upload your file? Upload as much as you want.&nbsp;&nbsp;(<a href="http://www.sharebee.com/why">Why Sharebee?</a>)</h2>	Sharebee.com is a 100% free service, sponsored by advertisements.<br>	<br>	<form enctype="multipart/form-data" action="http://uploading-to-4016517.s2-fdc.sharebee.com/uploading?5831ed8b87adfa6b28833da60755ab35" name="fform" method="post" onsubmit="return submitForm();">		<input type="hidden" name="MAX_FILE_SIZE" value="210000000" />		<table class="fform"  border="0" cellpadding="0" cellspacing="0">			<tr>				<td><div class="fdesc">Select file to upload:</div></td>				<td><div class="fsmalldesc">(max. 150MB)</div></td>			</tr>			 <tr>				<td colspan="2"><input class="finput" id="file" size="64" name="upfile" type="file"></td>			</tr>			<tr>				<td><div class="fdesc">Enter file description:</div></td>				<td><div class="fsmalldesc">(optional)</div></td>			</tr>			 <tr>				<td colspan="2"><textarea name="description" cols="" rows="5"></textarea></td>			</tr>			<tr>				<td height="45" colspan="2"><input type="checkbox" name="terms" value="1">&nbsp;&nbsp;<span>I have read and agree to the <a onmouseover="window.status='http://www.sharebee.com/tos?popup=true'; return true" onmouseout="window.status=' '; return true" onclick="tos();return false;" href="http://www.sharebee.com/tos?popup=true">terms of service</a>.</span></td>			</tr>			<tr>				<td height="40" colspan="2"><input class="button" type="submit" name="submit" value="Upload &raquo;"></td>			</tr>		</table>	</form>	</div>	<script type="text/javascript">	startPage();</script><div align="center"><iframe align="center" name="progress" id="progress" src="http://uploading-to-4016517.s2-fdc.sharebee.com/progress?id=5831ed8b87adfa6b28833da60755ab35" width="760" height="250" frameborder="0" style="display: none;"></iframe></div>			</td>		</tr>		<tr>			<td class="bottombar">				<span><a href="http://www.sharebee.com/">Upload file</a> &bull; <a href="http://www.sharebee.com/about">About Sharebee</a> &bull; <a href="http://www.sharebee.com/faq">FAQ</a> &bull; <a href="http://www.sharebee.com/support">Support Us</a> &bull; <a href="http://www.sharebee.com/contact">Contact</a></span><br>				<a href="http://www.sharebee.com/dmca">DMCA</a> &bull; <a href="http://www.sharebee.com/tos">Terms of Service</a> &bull; <a href="http://www.sharebee.com/privacy">Privacy Policy</a>			</td>		</tr>	</table><script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script><script type="text/javascript">_uacct = "UA-2732280-1";urchinTracker();</script>			</body>	</html>


Was This Post Helpful? 0
  • +
  • -

#3 fremgenc   User is offline

  • D.I.C Head

Reputation: 3
  • View blog
  • Posts: 119
  • Joined: 15-November 07

Re: What terms should I search in Google for achieving this.

Posted 11 May 2009 - 05:23 PM

http://msdn.microsof...y/debx8sh9.aspx

Try MSDN, it can be a bit tough to understand when your not used to the MSDN format.
Gives good source example too.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1