Что нового

Генерация определённых url из FireFox браузера.

Maria

Новичок
Сообщения
29
Репутация
0
Добрый день.

Есть страница открытая в FF имеющая к примеру 50 ссылок.
Нужно, что бы скрипт считывал эти ссылки и открывал их в новых закладках (все, по очереди, в конце должны быть открыты все в одном окне). Должно это происходить так. Я открываю самой первой в FF страницу с Url, название страницы может быть каждый раз разное, поэтому скрипт должен определить какая страница/закладка сейчас активна и по нажатую клавиши или комбинаций клавиш начать с ней работать. Клавиши я не указываю, так как не совсем знаю можно ли использовать любые или есть исключения, поэтому выберите те, которые считаете подходящими.

Теперь к самом сложному для меня.
Вот пример внутренности страницы.


<tr><td><table border=0 cellpadding=0 cellspacing=0 width='100%'><tr><td height=8 width='100%'></td></tr></table></td></tr><tr valign=top ><td align=center valign=top width='175'><form method=post action='http://localhost:8188/' name='f0'><table class='details' width='175'><tr><td class='tdInp'><input type=checkbox name='w0' onClick="document.f0.fn.value='w'; document.f0.submit(); return true;">Watch</td><td class='tdInp'><input type=checkbox name='h0' onClick="document.f0.fn.value='h'; document.f0.submit(); return true;">Hide</td><td class='tdInpImg'><input type=image name='b0' src='/Svr/Bid.gif' alt='Make a bid' onClick="document.f0.fn.value='b'; document.f0.submit(); return true;"></td><td class='tdInpImg'><input type=image name='n0' src='/Svr/Notes.gif' alt='Add notes' onClick="document.f0.fn.value='n'; document.f0.submit(); return true;"></td><td class='tdInpImg'><input type=image name='p0' src='/Svr/Preview.gif' alt='Preview' onClick="document.f0.fn.value='p'; document.f0.cx.value=window.event.clientX; document.f0.cy.value=window.event.clientY; document.f0.submit(); return true;"></td></tr></table><input type=hidden name='fn'><input type=hidden name='id' value='203299380598'><input type=hidden name='cx'><input type=hidden name='cy'></form></td><td align=center valign=top width='84'><a href="http:&#47;&#47;rover.ebay.com&#47;rover&#47;1&#47;707-53477-19255-0&#47;1?icep_ff3=2&amp;pub=5574629690&amp;toolid=10001&amp;campid=5337870715&amp;customid=&amp;icep_item=203299380598&amp;ipn=psmain&amp;icep_vectorid=229487&amp;kwid=902099&amp;mtid=824&amp;kw=lg"><img border=0 src="https:&#47;&#47;thumbs3.ebaystatic.com&#47;m&#47;mR7IC81iF9f6VUwun9Y1fRA&#47;140.jpg" width="64px" alt="Die Bibel, Einheitsübersetzung,Umschlagmotiv Seerosen (Monet ISBN 9783460440319"></a></td> <td align=left valign=top width='50%'><table border=0 cellpadding=0 cellspacing=0 width='100%'><tr><td width='100%'><div class=primary><img src="/Svr/newListing.gif" alt="New since your last update"> <a href="http:&#47;&#47;rover.ebay.com&#47;rover&#47;1&#47;707-53477-19255-0&#47;1?icep_ff3=2&amp;pub=5574629690&amp;toolid=10001&amp;campid=5337870715&amp;customid=&amp;icep_item=203299380598&amp;ipn=psmain&amp;icep_vectorid=229487&amp;kwid=902099&amp;mtid=824&amp;kw=lg">Die Bibel, Einheitsübersetzung,Umschlagmotiv Seerosen (Monet ISBN 9783460440319</a></div></td></tr><tr><td width='100%' class=details>Shipping: EUR 3,80, flat-rate</td></tr><tr><td width='100%' class=details>Condition: Neuwertig</td></tr><tr><td width='100%' class=details>Seller: <a href='http:&#47;&#47;localhost:8188&#47;?rd=a&amp;loc=https%3A%2F%2Fwww.ebay.de%2Fsch%2Fmeteorit1976%2Fm.html%3F_ipg%3D50%26_sop%3D12%26_rdc%3D1' title='meteorit1976&#39;s items for sale' class='details'>meteorit1976</a> <small>(<a href='http:&#47;&#47;localhost:8188&#47;?rd=a&amp;loc=http%3A%2F%2Ffeedback.ebay.de%2Fws%2FeBayISAPI.dll%3FViewFeedback2%26userid%3Dmeteorit1976%26ftab%3DFeedbackAsSeller' title='meteorit1976&#39;s feedback' class='details'>1457, 99,5%</a>)</small>, Deutschland</td></tr></table></td> <td align=right class=primary valign=top width='8%'><table border=0 cellpadding=0 cellspacing=0 class=primary><tr><td align=right valign=top>EUR&nbsp;11,00</td><td width=15></td></tr><tr><td align=right valign=top>EUR&nbsp;15,50</td><td width=15></td></tr></table></td><td align=center class=primary valign=top width='6%'><table border=0 cellpadding=0 cellspacing=0 class=primary width='100%'><tr><td align=center valign=top>0</td></tr><tr><td align=center valign=middle><img src='http://pics.ebaystatic.com/aw/pics/de/bin_15x54.gif'></td></tr></table></td> <td align=right class=primary valign=top width='12%'>Do Mrz-11 19:06<br>9h 49m</td> </tr> <tr><td colspan=6><table border=0 cellpadding=0 cellspacing=0 width='100%' bgcolor='#7DA7D9'><tr><td height=2></td></tr></table></td></tr><tr valign=top style='background-color: #F2FCFF;'><td align=center valign=top width='175'><form method=post action='http://localhost:8188/' name='f1'><table class='details' width='175'><tr><td class='tdInp'><input type=checkbox name='w1' onClick="document.f1.fn.value='w'; document.f1.submit(); return true;">Watch</td><td class='tdInp'><input type=checkbox name='h1' onClick="document.f1.fn.value='h'; document.f1.submit(); return true;">Hide</td><td class='tdInpImg'><input type=image name='b1' src='/Svr/Bid.gif' alt='Make a bid' onClick="document.f1.fn.value='b'; document.f1.submit(); return true;"></td><td class='tdInpImg'><input type=image name='n1' src='/Svr/Notes.gif' alt='Add notes' onClick="document.f1.fn.value='n'; document.f1.submit(); return true;"></td><td class='tdInpImg'><input type=image name='p1' src='/Svr/Preview.gif' alt='Preview' onClick="document.f1.fn.value='p'; document.f1.cx.value=window.event.clientX; document.f1.cy.value=window.event.clientY; document.f1.submit(); return true;"></td></tr></table><input type=hidden name='fn'><input type=hidden name='id' value='184699931048'><input type=hidden name='cx'><input type=hidden name='cy'></form></td><td align=center valign=top width='84'><a href="http:&#47;&#47;rover.ebay.com&#47;rover&#47;1&#47;707-53477-19255-0&#47;1?icep_ff3=2&amp;pub=5574629690&amp;toolid=10001&amp;campid=5337870715&amp;customid=&amp;icep_item=184699931048&amp;ipn=psmain&amp;icep_vectorid=229487&amp;kwid=902099&amp;mtid=824&amp;kw=lg"><img border=0 src="https:&#47;&#47;thumbs1.ebaystatic.com&#47;m&#47;mu-ZVXJpUDxxJ7EaLn6wEpw&#47;140.jpg" width="64px" alt="Betriebswirtschaftslehre der Unternehmung von Johannes Krohn, Stefan Kurtenbach,"></a></td> <td align=left valign=top width='50%'><table border=0 cellpadding=0 cellspacing=0 width='100%'><tr><td width='100%'><div class=primary><img src="/Svr/newListing.gif" alt="New since your last update"> <a href="http:&#47;&#47;rover.ebay.com&#47;rover&#47;1&#47;707-53477-19255-0&#47;1?icep_ff3=2&amp;pub=5574629690&amp;toolid=10001&amp;campid=5337870715&amp;customid=&amp;icep_item=184699931048&amp;ipn=psmain&amp;icep_vectorid=229487&amp;kwid=902099&amp;mtid=824&amp;kw=lg">Betriebswirtschaftslehre der Unternehmung von Johannes Krohn, Stefan Kurtenbach,</a></div></td></tr><tr><td width='100%' class=details>Shipping: EUR 4,99, flat-rate</td></tr><tr><td width='100%' class=details>Condition: Neuwertig</td></tr><tr><td width='100%' class=details>Seller: <a href='http:&#47;&#47;localhost:8188&#47;?rd=a&amp;loc=https%3A%2F%2Fwww.ebay.de%2Fsch%2Fdaniekujaw0%2Fm.html%3F_ipg%3D50%26_sop%3D12%26_rdc%3D1' title='daniekujaw0&#39;s items for sale' class='details'>daniekujaw0</a> <small>(<a href='http:&#47;&#47;localhost:8188&#47;?rd=a&amp;loc=http%3A%2F%2Ffeedback.ebay.de%2Fws%2FeBayISAPI.dll%3FViewFeedback2%26userid%3Ddaniekujaw0%26ftab%3DFeedbackAsSeller' title='daniekujaw0&#39;s feedback' class='details'>33, 100%</a>)</small>, Poing,Deutschland</td></tr></table></td> <td align=right class=primary valign=top width='8%'><table border=0 cellpadding=0 cellspacing=0 class=primary><tr><td align=right valign=top>EUR&nbsp;7,99</td><td width=15></td></tr></table></td><td align=center class=primary valign=top width='6%'><table border=0 cellpadding=0 cellspacing=0 class=primary width='100%'><tr><td align=center valign=top>0</td></tr></table></td> <td align=right class=primary valign=top width='12%'>Sa Mrz-13 10:23<br>2d 1h</td> </tr> <tr valign=top ><td align=center valign=top width='175'><form method=post action='http://localhost:8188/' name='f2'><table class='details' width='175'><tr><td class='tdInp'><input type=checkbox name='w2' onClick="document.f2.fn.value='w'; document.f2.submit(); return true;">Watch</td><td class='tdInp'><input type=checkbox name='h2' onClick="document.f2.fn.value='h'; document.f2.submit(); return true;">Hide</td><td class='tdInpImg'><input type=image name='b2' src='/Svr/Bid.gif' alt='Make a bid' onClick="document.f2.fn.value='b'; document.f2.submit(); return true;"></td><td class='tdInpImg'><input type=image name='n2' src='/Svr/Notes.gif' alt='Add notes' onClick="document.f2.fn.value='n'; document.f2.submit(); return true;"></td><td class='tdInpImg'><input type=image name='p2' src='/Svr/Preview.gif' alt='Preview' onClick="document.f2.fn.value='p'; document.f2.cx.value=window.event.clientX; document.f2.cy.value=window.event.clientY; document.f2.submit(); return true;"></td></tr></table><input type=hidden name='fn'><input type=hidden name='id' value='303912567556'><input type=hidden name='cx'><input type=hidden name='cy'></form></td><td align=center valign=top width='84'><a href="http:&#47;&#47;rover.ebay.com&#47;rover&#47;1&#47;707-53477-19255-0&#47;1?icep_ff3=2&amp;pub=5574629690&amp;toolid=10001&amp;campid=5337870715&amp;customid=&amp;icep_item=303912567556&amp;ipn=psmain&amp;icep_vectorid=229487&amp;kwid=902099&amp;mtid=824&amp;kw=lg"><img border=0 src="https:&#47;&#47;thumbs1.ebaystatic.com&#47;m&#47;mzG3amJ0y6wydi2IgD_KSAg&#47;140.jpg" width="64px" alt="Fotografie mit der Canon EOS 1300D von Christian Haasz (Taschenbuch)"></a></td> <td align=left valign=top width='50%'><table border=0 cellpadding=0 cellspacing=0 width='100%'><tr><td width='100%'><div class=primary><img src="/Svr/newListing.gif" alt="New since your last update"> <a href="http:&#47;&#47;rover.ebay.com&#47;rover&#47;1&#47;707-53477-19255-0&#47;1?icep_ff3=2&amp;pub=5574629690&amp;toolid=10001&amp;campid=5337870715&amp;customid=&amp;icep_item=303912567556&amp;ipn=psmain&amp;icep_vectorid=229487&amp;kwid=902099&amp;mtid=824&amp;kw=lg">Fotografie mit der Canon EOS 1300D von Christian Haasz (Taschenbuch)</a></div></td></tr><tr><td width='100%' class=details>Shipping: EUR 2,35, flat-rate</td></tr><tr><td width='100%' class=details>Condition: Sehr gut</td></tr><tr><td width='100%' class=details>Seller: <a href='http:&#47;&#47;localhost:8188&#47;?rd=a&amp;loc=https%3A%2F%2Fwww.ebay.de%2Fsch%2Froland8720%2Fm.html%3F_ipg%3D50%26_sop%3D12%26_rdc%3D1' title='roland8720&#39;s items for sale' class='details'>roland8720</a> <small>(<a href='http:&#47;&#47;localhost:8188&#47;?rd=a&amp;loc=http%3A%2F%2Ffeedback.ebay.de%2Fws%2FeBayISAPI.dll%3FViewFeedback2%26userid%3Droland8720%26ftab%3DFeedbackAsSeller' title='roland8720&#39;s feedback' class='details'>1824, 100%</a>)</small>, Am Rüdesheimer Hafen,Deutschland</td></tr></table></td> <td align=right class=primary valign=top width='8%'><table border=0 cellpadding=0 cellspacing=0 class=primary><tr><td align=right valign=top>EUR&nbsp;7,50</td><td width=15></td></tr></table></td><td align=center class=primary valign=top width='6%'><table border=0 cellpadding=0 cellspacing=0 class=primary width='100%'><tr><td align=center valign=top>0</td></tr></table></td> <td align=right class=primary valign=top width='12%'>Sa Mrz-13 12:43<br>2d 3h</td> </tr>
Я не стала выделять жирным шрифтом в самом примере, что бы ничего не нарушить.

Вот сами URL.

1)
http:&#47;&#47;rover.ebay.com;1&#47;707-53477-19255-0&#47;1?icep_ff3=2&amp;pub=5574629690&amp;toolid=10001&amp;campid=5337870715&amp;customid=&amp;icep_item=203299380598&amp;ipn=psmain&amp;icep_vectorid=229487&amp;kwid=902099&amp;mtid=824&amp;kw=lg
2)
http:&#47;&#47;rover.ebay.com&#47;rover&#47;1&#47;707-53477-19255-0&#47;1?icep_ff3=2&amp;pub=5574629690&amp;toolid=10001&amp;campid=5337870715&amp;customid=&amp;icep_item=184699931048&amp;ipn=psmain&amp;icep_vectorid=229487&amp;kwid=902099&amp;mtid=824&amp;kw=lg
3)
http:&#47;&#47;rover.ebay.com&#47;rover&#47;1&#47;707-53477-19255-0&#47;1?icep_ff3=2&amp;pub=5574629690&amp;toolid=10001&amp;campid=5337870715&amp;customid=&amp;icep_item=303912567556&amp;ipn=psmain&amp;icep_vectorid=229487&amp;kwid=902099&amp;mtid=824&amp;kw=lg

Мне нужны номера, которые я пометила жирным шрифтом.
К этим номерам нужно подставить часть следующего текста.
В конце должен быть сгенерирован адрес страницы, который и откроется в новой вкладке.
Что то вроде этого.
Код:
Global $uRL1 ="https://www.ebay.de/itm/"
$uRL = $uRL1&$item[0]


Что бы избежать одинаковых страниц, нужно удалять/пропускать повторяющиеся номера.
Буду рада Вашей помощи.
Сообщение автоматически объединено:

Вот эта часть задания уже не актуальна.
Нужно, что бы скрипт считывал эти ссылки и открывал их в новых закладках.

Нужен только сам номер item и генерация новой страницы, которая будет открываться.
 
Верх