@redapple Here is a simplified example:

```python
In [1]: from scrapy.http import HtmlResponse

In [2]: from scrapy.contrib.linkextractors.sgml import SgmlLinkExtractor

In [3]: response = HtmlResponse('http://example.com', body="""
<html><body>
<div id="item1" data-url="get?id=1"><a href="#">Item 1</a></div>
<div id="item2" data-url="get?id=2"><a href="#">Item 2</a></div>
</body></html>
""")

In [4]: lx = SgmlLinkExtractor(tags='div', attrs='data-url')

In [5]: lx.extract_links(response)
Out[5]: 
[Link(url='http://example.com/get?id=1', text=u'Item 1', fragment='', nofollow=False),
 Link(url='http://example.com/get?id=2', text=u'Item 2', fragment='', nofollow=False)]
```