You cannot do this using .netrc, since the first matching entry is executed and the second one is ignored. You can modify your script to not attempt auto-login using .netrc (option -n) and put user, password and ftp commands in a "here document". I know it is not safe to keep user and password in clear text inside a script, but you can always change permissions, the same way you do when using the .netrc file.
Here is an example:
Code:
ftp -ni 192.168.0.3 <<-EOF
user userA passwordA
binary
cd /path/to/some/dir
mget some_file*
bye
EOF