![]() |
Shell script help needed
Can someone who knows shell scripting spot my problem, everything appears to be correct but it's returning no results.
this is the html code that has the item_id code (ex: 55963573) that I need to collect Code:
<a href="http://www.domain.com/vendors/cat.html?item_id=55963573" Code:
while read prodName; |
Check to make sure the domain you are querying is actually returning results to
you. A smart admin blocks queries from wget to db/query servers to avoid certain ddos attacks while a smart coder sets the client settings in wget to match that of mozilla or another popular web browser so it does not look automated. Set wget to look like a browser and see if you get better results. Code looks straight. :-) |
Quote:
Code:
for page in {1..50} |
No idea how to help you without the data example.
|
from the manual; |
Quote:
Code:
<a href="http://www.domain.com/vendors/cat.html?item_id=55963573" |
It appears one problem is that you've anchored the grep:
Code:
grep "^?item_id=" nothing matches. Also, remember ? is a metacharacter. You'll probably not get much more help without posting your actual code with the real URL so somebody can see what is going on. When you obfuscate things you may as well ask why this doesn't work: Code:
some code |
All times are GMT -7. The time now is 07:12 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123