I think this should be fairly simple but can't seem to figure it out.
I just need the python syntax to find if a string contains only numbers.
so it would find: '8888'
or '1'
or '126928428'
but not:
'Test'
or 'Test8'
I searching for it in a for loop that is pulling info off a webpage with BeautifulSoup.
<td>203.195.237.158</td><td>8888</td><td>CN</td><td>China</td><td>Socks5</td>
Basically I am trying to pull the ip and port out of a long string of these.