Returns a list of tuples of page IDs representing incoming links from the list of provided page IDs to other pages. Args: page_ids: A list of page IDs whose incoming links to fetch. Returns: list(int, int): A lists of integer tuples representing incoming links from the list
(self, page_ids)
| 185 | return self.fetch_links_helper(page_ids, 'outgoing_links') |
| 186 | |
| 187 | def fetch_incoming_links(self, page_ids): |
| 188 | """Returns a list of tuples of page IDs representing incoming links from the list of provided |
| 189 | page IDs to other pages. |
| 190 | |
| 191 | Args: |
| 192 | page_ids: A list of page IDs whose incoming links to fetch. |
| 193 | |
| 194 | Returns: |
| 195 | list(int, int): A lists of integer tuples representing incoming links from the list of |
| 196 | provided page IDs to other pages. |
| 197 | """ |
| 198 | return self.fetch_links_helper(page_ids, 'incoming_links') |
| 199 | |
| 200 | def fetch_links_helper(self, page_ids, outcoming_or_incoming_links): |
| 201 | """Helper function which handles duplicate logic for fetch_outgoing_links() and |
no test coverage detected